Re: ICSimulator

hehe I knew it was hiding in something obvious tongue

Thanks smile

Psycho-Simple  says: sky/did you do some programming for stefan lately/coz IC is now *ed

Re: ICSimulator

http://icsim.99k.org/


I uploaded everything I have so far to the site. Users can create an account, login, create simulations (but not interact with them much other than view the hq/planetslist/homeplanet view), and create custom races. Feel free to explore.

Everything seems to be working in the newest versions of Firefox/IE/Chrome/Opera/Safari (Which is a miracle in itself)
But this wont guarantee that it'll work for everyone else :\ I'll be looking forward to bug reports!

There's always a chance that I'll redesign something and be forced to empty a database table.. that could mean that all races or simulations could be lost during this pre-beta period. Races and User accounts will probably be fine but the simulations might be changed at some point meaning I'll have to reset that table.

If you get stuck on a "loading..." screen feel free to refresh the page. This is either due to a slow response from my crap server or a javascript anomaly. You wont ever lose progress in a simulation because every action is stored in the database, refresh and everything will be like normal (You will have to reenter the simulation you were working on though)

Suggestions appreciated.

Psycho-Simple  says: sky/did you do some programming for stefan lately/coz IC is now *ed

Re: ICSimulator

yikes

Nice big_smile

Re: ICSimulator

Suggestion:
Unlike the other race bonuses, each 10% change in the race Income bonus is supposed to increase or decrease 20 race points, not 10.

Make Eyes Great Again!

The Great Eye is watching you... when there's nothing good on TV...

Re: ICSimulator

Fixed! smile

Psycho-Simple  says: sky/did you do some programming for stefan lately/coz IC is now *ed

Re: ICSimulator

None of the simulations load for me, even after refreshing.

Your = possessive. As in, "your grammar sucks."
You're = you are. As in, "you're an idiot for not knowing the difference."

Re: ICSimulator

Can you tell me what browser you're using as well as what version? If it's internet explorer I highly suggest you run icsimulator in firefox or chrome (Chrome's javascript engine is very very efficient and fast, IE is slow in everything it does lol)

Psycho-Simple  says: sky/did you do some programming for stefan lately/coz IC is now *ed

Re: ICSimulator

I had to update the predefined races which meant removing the old ones from the database and inserting new copies.
And instead of updating simulations that used the predefined races I just deleted those simulations instead. I doubt that's an issue cause simulations are really simple to create at this point tongue If I do this in the future it'll be a lot cleaner and wont affect simulations but for this it just seemed simpler.

I optimized the core scripts a bit and fixed a window bug. Some of these changes could fix your problem Skyroshroud but I'm guessing not, I think it's your browser that is having an issue but I could be wrong about that too tongue

Psycho-Simple  says: sky/did you do some programming for stefan lately/coz IC is now *ed

Re: ICSimulator

Oh, well I was using IE7 (I think, that or 8) And I don't have another browser since i'm too lazy to download/install another.
I did try using predefined races and custom, doing both never worked.


EDIT: It works! Yay. Nice Work!

Your = possessive. As in, "your grammar sucks."
You're = you are. As in, "you're an idiot for not knowing the difference."

Re: ICSimulator

haha tongue sweet! Btw you'd love life a lot more if you just TRIED firefox wink One of the greatest things about it is that if it randomly crashes when you reopen it all of your previous windows are restored tongue (not that it crashes often, usually happens when you have 50 windows open like I sometimes do lolol)

I might take up someone's offer to host the site on their server which should speed up the script. Right now the free server I use is extremmmmmely slow which is even causing me problems running the program, so I can just imagine what it would do to users with slow connections sad

Btw is there some way I can get authorization to use some of the imperial conflict graphics? (Buildings/Units/Resources)
I know I'm already using them lol but it would be nice if it were authorized usage tongue

Psycho-Simple  says: sky/did you do some programming for stefan lately/coz IC is now *ed

Re: ICSimulator

Question: Do you get any resources back when you cancel the construction of buildings on a planet?

Psycho-Simple  says: sky/did you do some programming for stefan lately/coz IC is now *ed

Re: ICSimulator

Answer: Nope.

Make Eyes Great Again!

The Great Eye is watching you... when there's nothing good on TV...

Re: ICSimulator

good tongue

Psycho-Simple  says: sky/did you do some programming for stefan lately/coz IC is now *ed

39 (edited by Skylar 30-Nov-2009 15:23:38)

Re: ICSimulator

The simulator has been updated.

You can now do very basic functions, here's a minimal list:

- View your Headquarters screen.
- View all Council activities (View how many units/buildings you have as well as what buildings/units are being constructed. And of course view last weeks affairs)
- View your planets (You cannot explore any new ones yet)
- Construct buildings on your homeplanet (The new buildings will show up in the council screen and you'll notice a number in parenthesis in the planet screen telling you how many buildings are current under construction)
- View your fleet and construct units (There will show in the council too under Unit Queue)
- Reset your simulation (This is biggest for debugging so that I didn't have to delete my simulations when I screwed up something xD)

All windows update in realtime so no window should ever contain old information. If it does then it is a bug tongue For instance, if you have several windows open and you click "Advance Tick" all of the windows you have open should update with that current tick's information automagically.

I have to pre-apologize for the slow loading of pages. My webhost is slow. The scripts all run in under a second and there's not that much information being sent, it's just the speed of my host I'm thinking. If anybody has a highspeed host I'd be willing to move icsim but I'd need ftp access to update the simulator as I go along.




Bugs:
There is a bug I haven't handled yet. If you delete a race, all of the simulations that use that race will become corrupted and not load correctly. I haven't decided how I want to handle this yet so I haven't fixed it. I'll probably end up deleting all simulations with that certain race if you choose to delete it, as storing race information within a simulation is not viable and that's the most simple way of doing it, I'm holding out on a better idea though.

Intended Bug: Most regular text links wont take you anywhere and may take you back to the simulation list screen. These are just unhandled and unscripted.

Intended: Research is only 50% implemented. Beware that it isn't active in all areas due to the fact that I haven't had a chance to verify the outcome of the formulas within the simulation. I'll have this fixed when I do the research screen sometime today probably.

Psycho-Simple  says: sky/did you do some programming for stefan lately/coz IC is now *ed

Re: ICSimulator

Bug reports appreciated!!

Psycho-Simple  says: sky/did you do some programming for stefan lately/coz IC is now *ed

Re: ICSimulator

Excellent!

Few things, when I try to demolish buildings that are in que, it takes me straight out to the simulation listings and I have to go back into it. I built some RC's but when I clicked the research page nothing happened, so I was going to cancel them. Plus when building, it lets me OB straight away, even when buildings have not even been completed.
Also it would be handy for an "Advance X amount of ticks" button. tongue

But very nice work!

Your = possessive. As in, "your grammar sucks."
You're = you are. As in, "you're an idiot for not knowing the difference."

Re: ICSimulator

Oh yeah, what is it.. you can only overbuild as much as you already have built right?

Also demolish/destroy and research haven't been implemented yet tongue

Advance X is coming, just not yet xD

Psycho-Simple  says: sky/did you do some programming for stefan lately/coz IC is now *ed

Re: ICSimulator

UPDATES!!

Advance X :: You can use Advance Tick and Reverse Tick like normal but I added a new button that will open up a tick manager where you can advance or reverse as many ticks as you want. Click "Tick Modifier" to open up this window.

Research :: Research is up and running! I don't know if it works 100% though. Research is so broadly injected into so many different variables that it's very possible that I missed a few. Bug reports welcome!!
Note - You can put in any research percent on the research screen and it will modify the rest of the percents so that they all add up to 100%
For instance if you put 1% in military, welfare, economy and construction and then change resources to 0%, those first four percents will become 25% and resources will stay at 0%. This way you wont get errors if your percents don't add up to 100, it'll try to compensate automagically.


I need testers!

Psycho-Simple  says: sky/did you do some programming for stefan lately/coz IC is now *ed

44

Re: ICSimulator

I'd test but I don't have a working computer. Plus I'm baking a cake.

Rehabilitated IC developer

Re: ICSimulator

lol petrol xD


UPDATE! I added a tool that can be found under Misc called "Tweek Sim"
It allows you to change all the data that's contained within a simulation. You can also add a planet or edit your existing ones.
Note: Right now the "Remove Planet" function is not active but it probably will be operational tomorrow.

At this point all previous simulations probably wont load properly and if they do they all need to be reset. I recommend anyone who has previous simulations to delete them and create new ones.

Psycho-Simple  says: sky/did you do some programming for stefan lately/coz IC is now *ed

Re: ICSimulator

Noooooooooo, my precious simulation deleted, I was totally pwning with my 1 planet. sad

Your = possessive. As in, "your grammar sucks."
You're = you are. As in, "you're an idiot for not knowing the difference."

47 (edited by Skyroshroud 01-Dec-2009 08:00:30)

Re: ICSimulator

Well the Tick Manager doesn't work tongue I advanced 15 ticks and none of my buildings were built, and in the building que it reads;

Building Planet Count ETA   
Cash Factory Homeplanet 100 -10.000023529246 Cancel

EDIT: Buildings aren't getting built at all, whatever way you use. eg. Tick manager or Advance Tick button. sad

Your = possessive. As in, "your grammar sucks."
You're = you are. As in, "you're an idiot for not knowing the difference."

Re: ICSimulator

Ugh, when I added construction science to building time eta's I forgot to round the values xD
So eta's were becoming negative instead of 0 which the program looks for xD

Easy fix

It should work correctly now.

All of the basic features (Aside from demolishing or deleting buildings/units/planets) should work now.
I stilll don't know the specifics of the tick formula exactly though so things might not be 100% due to that.

It would be helpful to know "when" networth is calculated. eg. before or after buildings are built or planets are explored etc?
And is pop growth calculated before or after buildings are built? Eg. if you have a maxpop of 15000 and a pop of 15000, would your population grow if you had 10 living quarters built that tick? Same with research. If you gained 1% welfare is maxpop precalculated before science effects it? Or is population calculated per planet and THEN networth calculated (like I have it in the program now)

I have to do it one way or another because networth effects maxpop and income ... but everything effects networth. These things I haven't had the opportunity to test. So if somebody has a small empire please use Tweek sim to get the program to match your empire and go forward 1 tick and write down your resources and science points before/after. It'll be extremely useful if you can see a difference when buildings are built.

Psycho-Simple  says: sky/did you do some programming for stefan lately/coz IC is now *ed

Re: ICSimulator

Probably better to ask an experienced pop banker on that, lol..

In the mean time:
Net income +100,001,430,463,810
I would have twice as much, but my pop eats more food than it allows me to hold at one time. tongue

Your = possessive. As in, "your grammar sucks."
You're = you are. As in, "you're an idiot for not knowing the difference."

Re: ICSimulator

roflmao how'd that happen? xD

Psycho-Simple  says: sky/did you do some programming for stefan lately/coz IC is now *ed