Home World Forum
Stars! AutoHost web forums

Jump to Stars! AutoHost


 
 
Home » Stars! Clones, Extensions, Modding » FreeStars » Need web hosting for Race Wizard
Need web hosting for Race Wizard Wed, 25 October 2006 09:21 Go to next message
ninja_squirrel is currently offline ninja_squirrel

 
Crewman 1st Class

Messages: 34
Registered: December 2002
Location: Toronto, ON, Canada

Hi guys,

Until I get the issues with my website sorted, can anyone provide me with reliable space to upload my Flash version of the Race Wizard? It will be fully functional by end of tonight, most likely, possibly end of tomorrow if I get sidetracked. Not the prettiest thing around, but functional.

I'm hoping to get it uploaded and available so that people can test their races on it and report discrepencies. So far the algorithm has spit out the right numbers for everything I've thrown at it.

Thanks,
- Andrew



The Dopelar Effect:

The tendancy for stupid ideas to seem more intelliegent when they come at you rapidly.

Report message to a moderator

Re: Need web hosting for Race Wizard Wed, 25 October 2006 23:10 Go to previous messageGo to next message
gible

 
Commander

Messages: 1343
Registered: November 2002
Location: Wellington, New Zealand

If you email it to me with the html files that go with it ,I can put it up Smile me@me.net (substitute where obvious)

[Updated on: Wed, 25 October 2006 23:10]

Report message to a moderator

Re: Need web hosting for Race Wizard Thu, 26 October 2006 00:55 Go to previous messageGo to next message
ninja_squirrel is currently offline ninja_squirrel

 
Crewman 1st Class

Messages: 34
Registered: December 2002
Location: Toronto, ON, Canada

Thanks gible. I'll send it tomorrow night. Still have to get the hab settings dialog to work right. Everything else is good to go, though it's a bit slow right now. Need to optimize the algorithm better for Flash.


The Dopelar Effect:

The tendancy for stupid ideas to seem more intelliegent when they come at you rapidly.

Report message to a moderator

Re: Need web hosting for Race Wizard Fri, 27 October 2006 08:21 Go to previous messageGo to next message
ninja_squirrel is currently offline ninja_squirrel

 
Crewman 1st Class

Messages: 34
Registered: December 2002
Location: Toronto, ON, Canada

E-mailed.

For some reason the calculations take a lot longer if it needs to consider all 3 hab categories. If you set one immune, however, everything speeds up considerably.

Until I optimize the algorithm for Flash, I'd suggest doing that temporarily (if your race doesn't have an immunity that is) while entering all of the other data.

Please report any bugs you encounter, or inconsistencies between the real RW and mine.

I will be adding the ability to import a Stars! race file eventually, but I need my own site and PHP capability for that.

Edit:
Spiffy! Gible has already uploaded it. Try it out here:
http://www.gible.net/WebStars/WebStars%20-%20RW.html

Thanks,
- Andrew


[Updated on: Fri, 27 October 2006 08:48]




The Dopelar Effect:

The tendancy for stupid ideas to seem more intelliegent when they come at you rapidly.

Report message to a moderator

Re: Need web hosting for Race Wizard Fri, 27 October 2006 10:02 Go to previous messageGo to next message
Kotk

 
Commander

Messages: 1227
Registered: May 2003
ninja_squirrel wrote on Fri, 27 October 2006 15:21


For some reason the calculations take a lot longer if it needs to consider all 3 hab categories. If you set one immune, however, everything speeds up considerably.

Its because it considers habs for about 4000 planets for races without immunities. For races with 1 immunity it considers about 11 times less planets.

Possibly Flash is too slow to calculate 4000 planets habs in a sole eyeblink. Rolling Eyes

Report message to a moderator

Re: Need web hosting for Race Wizard Fri, 27 October 2006 15:19 Go to previous messageGo to next message
ninja_squirrel is currently offline ninja_squirrel

 
Crewman 1st Class

Messages: 34
Registered: December 2002
Location: Toronto, ON, Canada

No, I'm pretty sure I can squeeze 4000 out of it, the direct port of the code is just not very fast. All of those [] bit access operators have become array access operators, and array access is not incredibly fast in Flash.

Also, it's only necessary to recalculate the hab when the hab values change.

In fact it should only be necessary to recalculate the specific hab trait which is changed each time.

We'll see how it works out, though.



The Dopelar Effect:

The tendancy for stupid ideas to seem more intelliegent when they come at you rapidly.

Report message to a moderator

Re: Need web hosting for Race Wizard Fri, 27 October 2006 20:55 Go to previous messageGo to next message
gible

 
Commander

Messages: 1343
Registered: November 2002
Location: Wellington, New Zealand

ninja_squirrel wrote on Sat, 28 October 2006 01:21


I will be adding the ability to import a Stars! race file eventually, but I need my own site and PHP capability for that.

fyi my friends server has both php & sql installed...I'm using it to run a stars wiki, which is waiting for the data to be inserted into the database from the old host.

Report message to a moderator

Re: Need web hosting for Race Wizard Thu, 02 November 2006 08:22 Go to previous messageGo to next message
Micha

 

Messages: 2342
Registered: November 2002
Location: Belgium GMT +1
Some comments/questions (if you don't mind).

First of all I love the idea. Smile I'm working on a mac and sometimes when work is slow I like to play around with the race wizard ... which I can't do on my mac (or have to install some vitual pc thing).

Regarding the flash movie (in order of RW page):
No "1 in x" habitable? Or is that left out because of the slowing down problem? No values either ...
Why not let people drag the hab sliders?
When the band is pushed to the edge you can't expand it without first moving it a bit away from the edge.
I can't seem to find pop growth ...
Always "start at 4" even when not JoaT.
Reset button does nothing?

Are some of the things not displaying just not there? Or problems with flash itself, as in left out when compiling the .swf file?
Might be able to offer you a hand in some of the above things ... I know my way around Flash ... as long as it's not about the calculations. Wink (unless maybe if it's not that pretty on the inside either <g> ... heh, I could pimp the outside in that case)

mch

Report message to a moderator

Re: Need web hosting for Race Wizard Fri, 03 November 2006 06:07 Go to previous messageGo to next message
m.a@stars is currently offline m.a@stars

 
Commander

Messages: 2765
Registered: October 2004
Location: Third star to the left
Micha wrote on Thu, 02 November 2006 14:22

First of all I love the idea. Smile I'm working on a mac and sometimes when work is slow I like to play around with the race wizard ... which I can't do on my mac (or have to install some vitual pc thing).

Same reason why I've coded so many tools in html-wrapped javascript. Very Happy

Reminds me that I got an almost-completely-functional RaceWizard code embedded into my old "hab & econ calculator" (the one based upon Henk Poell's idea) and if only I could find a couple hours for debugging and sidestepping the "4000 planets calculated every time you change an option Shocked " issue, it should be quite usable. Sherlock Whip



So many Stars, so few Missiles!

In space no one can hear you scheme! Deal

Report message to a moderator

Re: Need web hosting for Race Wizard Fri, 03 November 2006 16:48 Go to previous messageGo to next message
gible

 
Commander

Messages: 1343
Registered: November 2002
Location: Wellington, New Zealand

given that the spread of planets within each hab type is known, it shouldn't be neccesary to perform a statistical simulation just to calculate the proportion of habitable planets.

..off to look up hab spreads.. Wink
Edit:

Given that:
grav and temp taper off linearly 10 clicks for each end and are flat in between
rad is completely flat
Assuming grav & temp are modelled by the spread: 0,1,2,3,4,5,6,7,8,9,10,10,10,....,10,10,10,9,8,7,6,5,4,3,2,1 ,0 (borrowed from Craebild's Hab calc page)
and using click values 0-100

The habitable portion of grav & temp should be:
gravP=[ (hi-lo+1)*10 - if{ lo<10 , (10-lo)*(10-lo+1)/2 , 0 } - if{ hi>90 , (hi-90)*(hi-90+1)/2 , 0 } ]/900
The habitable portion of rad is:
radP=(hi-lo+1)*9/900 (or =(hi-lo+1)/100 )

And the overall portion of habs is habP=gravP*tempP*radP

or 1 in 1/habP

unfortunately this is based on the asusmtions of the hab distributions and doesn't exactly match those reported by the race wizard(which are known to be inaccurate anyway)


[Updated on: Fri, 03 November 2006 19:52]

Report message to a moderator

Re: Need web hosting for Race Wizard Sat, 04 November 2006 02:11 Go to previous messageGo to next message
ninja_squirrel is currently offline ninja_squirrel

 
Crewman 1st Class

Messages: 34
Registered: December 2002
Location: Toronto, ON, Canada

Yeah...iterating through 4000 planets seems to be a really innefficient solution to me. There must be a way to simplify the calculation. I'll give it a look over some time soon.


The Dopelar Effect:

The tendancy for stupid ideas to seem more intelliegent when they come at you rapidly.

Report message to a moderator

Re: Need web hosting for Race Wizard Tue, 07 November 2006 04:36 Go to previous messageGo to next message
m.a@stars is currently offline m.a@stars

 
Commander

Messages: 2765
Registered: October 2004
Location: Third star to the left
gible wrote on Fri, 03 November 2006 22:48

given that the spread of planets within each hab type is known, it shouldn't be neccesary to perform a statistical simulation just to calculate the proportion of habitable planets.


Unless you want more than just guess overall performance and average hab draw, perhaps. Sherlock

For instance, our hab tool's intent was more in the line of showing exactly how bad, or how good, or how random would the hab draw be for a given race design. Get maximum and minimum envelopes, as well as giving some idea of what a successful testbed with the given race would look like, even if faced with other-than-average conditions. Cool

True, it will never be perfect as long as we're using a different planet generator than Stars! own, but that's precisely what the RW is using, ain't it? So perhaps there's a reason why it does things the way it does. Sherlock Whip

Quote:

(borrowed from Craebild's Hab calc page)



Yep, that's the "old" version of our tool, indeed. Nod


[Updated on: Tue, 07 November 2006 04:44]




So many Stars, so few Missiles!

In space no one can hear you scheme! Deal

Report message to a moderator

Re: Need web hosting for Race Wizard Wed, 08 November 2006 23:05 Go to previous messageGo to next message
ninja_squirrel is currently offline ninja_squirrel

 
Crewman 1st Class

Messages: 34
Registered: December 2002
Location: Toronto, ON, Canada

Yeah I can't figure out another way to do it without the rounding rules changing the results.

I was considering caching the results for each hab category after each generation, so that you would only have to calculate the one that was changed each time.



The Dopelar Effect:

The tendancy for stupid ideas to seem more intelliegent when they come at you rapidly.

Report message to a moderator

Re: Need web hosting for Race Wizard Sun, 12 November 2006 03:20 Go to previous messageGo to next message
gible

 
Commander

Messages: 1343
Registered: November 2002
Location: Wellington, New Zealand

m.a@stars wrote on Tue, 07 November 2006 22:36

Yep, that's the "old" version of our tool, indeed. Nod

Where's the new version?

Report message to a moderator

Re: Need web hosting for Race Wizard Sun, 12 November 2006 05:43 Go to previous messageGo to next message
m.a@stars is currently offline m.a@stars

 
Commander

Messages: 2765
Registered: October 2004
Location: Third star to the left
ninja_squirrel wrote on Thu, 09 November 2006 05:05

Yeah I can't figure out another way to do it without the rounding rules changing the results.

I was considering caching the results for each hab category after each generation, so that you would only have to calculate the one that was changed each time.


I'll have to take another look at that code. Optimizing that part would help my javascript version, too. Smile

Also, there's a bunch of code in the calcPlanetValue function itself that could perhaps be optimized for racewizard purposes. Sherlock



So many Stars, so few Missiles!

In space no one can hear you scheme! Deal

Report message to a moderator

Re: Need web hosting for Race Wizard Sun, 12 November 2006 05:56 Go to previous messageGo to next message
m.a@stars is currently offline m.a@stars

 
Commander

Messages: 2765
Registered: October 2004
Location: Third star to the left
gible wrote on Sun, 12 November 2006 09:20

m.a@stars wrote on Tue, 07 November 2006 22:36

Yep, that's the "old" version of our tool, indeed. Nod

Where's the new version?


Sleeping at my hard disk waiting until I fully debug / speedup it, I'm afraid. Sad Sherlock Whip

Main changes with regard to the "old" one would be several minor optimizations and the RW code. Smile

Now that I think of it, it should be changed to use the "real" planetValue formulas, too. Shocked


[Updated on: Sun, 12 November 2006 06:00]




So many Stars, so few Missiles!

In space no one can hear you scheme! Deal

Report message to a moderator

Re: Need web hosting for Race Wizard Mon, 13 November 2006 06:21 Go to previous messageGo to next message
Altruist is currently offline Altruist

 
Commander

Messages: 1068
Registered: August 2005
Location: Berlin
Micha wrote on Thu, 02 November 2006 14:22

Regarding the flash movie (in order of RW page):
No "1 in x" habitable? Or is that left out because of the slowing down problem? No values either ...
Why not let people drag the hab sliders?
When the band is pushed to the edge you can't expand it without first moving it a bit away from the edge.
I can't seem to find pop growth ...
mch


Same here.

First 5 minutes I thought that the race wizard wouldn't work or I had a compatibility problem with Opera... until I realized that the wizard was THAT slow. It helped setting all habs to immune (as mentioned above) but without this trick the wizard is barely usable just alone due to to speed issues. Who wants to drink a cup of coffee after every single click?

Can't say much about wether it actually works since there are no values shown in the hab area.


[Updated on: Mon, 13 November 2006 06:22]

Report message to a moderator

Re: Need web hosting for Race Wizard Tue, 14 November 2006 23:53 Go to previous message
ninja_squirrel is currently offline ninja_squirrel

 
Crewman 1st Class

Messages: 34
Registered: December 2002
Location: Toronto, ON, Canada

Looks like I missed the pop growth control. I'll add it before I send an updated version. Silly oversight on my part, I knew I'd miss something. Is the "1 in x" calculated by the hab calculator, or is there a seperate algorithm for that?

As for the hab slider issue, yes, the UI isn't perfect right now. I'm mostly concerned with accuracy at the moment. All of what's there is temporary UI, anyway, until I can put a proper one together using Flash 9.

Some of the speed issues should vanish once I do everything over in Flash 9. The new virtual machine is much faster. The version I have locally also doesn't recalculate the hab points unless something that affects them is changed.

I'm kind of swamped with work right now, but I'll try to release a new version by the end of the week.



The Dopelar Effect:

The tendancy for stupid ideas to seem more intelliegent when they come at you rapidly.

Report message to a moderator

Previous Topic: some questions about coding
Next Topic: Idea: Automating MM
Goto Forum:
  


Current Time: Sat May 04 00:58:29 EDT 2024