Gravity Simulator
http://www.orbitsimulator.com/cgi-bin/yabb/YaBB.pl
General >> Discussion >> Program blocks
http://www.orbitsimulator.com/cgi-bin/yabb/YaBB.pl?num=1147639539

Message started by Jorge on 05/14/06 at 13:45:38

Title: Program blocks
Post by Jorge on 05/14/06 at 13:45:38

Hi,

I've downloaded the program a few days ago, istalled it and ran it a few times, checked out the simulations that came with it, downloaded and ran (for a while) a few more and it all seemed pretty cool except having all trails deleted whenever you swapped to another window to check the email or the messenger OSLT.

Then I decided to try out creating my own simulations. Checked the tutorial to see how that was done, understood, proceeded, the simulation ran perfectly and was a lot of fun. Then I saved it. Went to do other things and later decided to add some stuff to my simulation. The program blocked, seemingly trapped in some sort of loop.

CTRL-ALT-DELeted it, ran it again, tried again. All went well untill I tried to load my simulation. Then it blocked again.

Rebooted, tried again. Same thing.

Made a new simulation from scratch, saved it, tried again. Block.

Rebooted, tried again. Block.

And now it even blocks right after I try to run it! Haven't rebooted yet, so I don't know if it's permanent or not (since I'm writing this).

What's up?

I'm running a pretty weak computer with a Windows XP OS.

Title: Re: Program blocks
Post by Jorge on 05/14/06 at 14:10:23


Jorge wrote:
And now it even blocks right after I try to run it! Haven't rebooted yet, so I don't know if it's permanent or not (since I'm writing this).


It is permanent. The program simply ceased to work. I'm now uninstalling it and will try to do a fresh install.

Title: Re: Program blocks
Post by Jorge on 05/14/06 at 14:16:01


Jorge wrote:
It is permanent. The program simply ceased to work. I'm now uninstalling it and will try to do a fresh install.


Did that. The program now works again, except when I try to load the simulations I created... then it blocks.

Title: Re: Program blocks
Post by Jorge on 05/16/06 at 16:29:28

OK, I give up. The program is now constantly freezing on startup, taking up some 90% of CPU time when it happens. There's definitely an endless loop somewhere. As soon as I post this I'm going to uninstall it for good.

Title: Re: Program blocks
Post by Tony on 05/16/06 at 19:08:59

Are you running a European version of Windows?  I've seen this problem with the Danish version and I have a patch to fix it.  If you get a chance, e-mail me a copy of a simulation you've created.

In the meantime, see if this works.  Go to the folder that contains gravitysimulator.exe and delete the file called resume.gsim.  Then make a copy of one of the existing gsim files that came with the install package.  Rename it to resume.gsim and see if that unfreezes the program.  I'm curious to know.  Thanks.

Title: Re: Program blocks
Post by Jorge on 05/17/06 at 06:19:32

Yes, my windows is in the portuguese version. On top of that I have installed a GUI replacement called Aston.

Regarding the rest, I'll have to install the program again. I don't have time right now, but will do it later on. I'll also send you an email as soon as possible.

In any case, the odd thing is that it doesn't freeze immediately. For the first few times, the program loads and runs smoothly with resume.gsim, and only after a while does the freezing begin.

It's with the simulations I try to save that freezing starts at once. Tomek seems to be having the same problem, BTW.

Title: Re: Program blocks
Post by Tony on 05/17/06 at 10:41:38

Thanks.  With the Sweedish version of Windows, if you look at any files you create, it saves the numbers in your .gsim files with commas instead of decimal points.  For example 3/2 would be 1,5 instead of 1.5 like most Windows versions.  That was causing the problem, and the fix is very simple.  But I'm surprised that you get a few good runs instead of just one.  When you close the program, it saves your current state in the file resume.gsim.  But if you end the program by ctrl+alt+del, it doesn't do this, which preserves your original resume.gsim, and ensures that your program will start properly the next time.

I appreciate you helping me solve this problem.  For every one person that reports a problem like you have, there's probably 100 people who just give up in frusteration.  If you can send me any gsim file created by your computer, I can verify that this is indeed the problem, then I'll send you the patched version.

Tony

Title: Re: Program blocks
Post by Jorge on 05/17/06 at 16:56:49

Ah!

Problem explained: the standard in portuguese is, indeed, commas instead of decimal points, and that's how the simulation is saved. I'm going to send it to you anyway, since there's always the possibility that something else is lurking there.

Thanks.

Title: Re: Program blocks
Post by Tony on 05/17/06 at 18:12:25

I just sent you a patched version.  Just place it in the same directory as the original gravitysimulator.exe and let me know if it works.

Title: Re: Program blocks
Post by tomek on 05/17/06 at 23:41:29

D'OH ;D so much for a different separator. and i never guessed that .gsim is just a plain text file... D'OH-an-encore ;D

i replaced commas with periods in the scenario, and now it no longer freezes on startup. but i can't see any of the three bodies that are supposed to be there. maybe i've replaced some genuine commas that weren't supposed to be periods...

could you please send me a patched version as well; or, better yet, make it available for download?

EDIT: i just tried to do "object>edit object" and got "runtime error 6: overflow"

here is the scenario:

<GrAVITY>
<Distance Boxes>
</Distance Boxes>
<Orbit Boxes>
</Orbit Boxes>
<SData>
1.73415299158326E-09
49097241
128
4.64109407751365E-03
1.30494090314134E-02
2
3
False
False
0
-10000
C:\Program Files\Gravity Simulator\figeigth.gsim
False
2489252.02339429
True
0
2
-60
-60
15480
11640
True
False
1
10
True
False
True
True
C:\Program Files\Gravity Simulator
C:\Program Files\Gravity Simulator\figeigth.gsim
False
0
0
0
0
</SData>
<Command Buttons>
690
0
1320
0
1950
0
2580
0
3210
0
</Command Buttons>
<Captions>

MS Sans Serif
12
16711680
False
False
False
False
0
0
1
1

MS Sans Serif
13.5
255
False
False
False
False
0
0
1
1

MS Sans Serif
8.25
65280
False
False
False
False
0
0
1
1

MS Sans Serif
8.25
16711680
False
False
False
False
0
0
1
1
</captions>
<Thrust Box>
</Thrust Box>
<Objects>

Floating
0

0
0
-2464248828.25193
-1665151685.91224
31590775755.1261
680.682989946551
-519.833534387293
-5.82487213184283
-128
-3.119351E+37
0
Reserved for future use
Reserved for future use
Reserved for future use
Reserved for future use

1
27427.3469934378

33023
1000
28921510171.7481
-289292685.91224
79755.1260566711
714536.682989947
9508472.16646561
506.175127868157
0
0
0
Reserved for future use
Reserved for future use
Reserved for future use
Reserved for future use

2
16384
1
8421376
0
28921510171.7481
-289292685.91224
79755.1260566711
-427479.317010053
7756664.16646561
506.175127868157
0
0
0
Reserved for future use
Reserved for future use
Reserved for future use
Reserved for future use

3
27427.3469934378
1
4227072
1000
29921510171.7481
-289292685.91224
79755.1260566711
1226536.68298995
10276472.1664656
506.175127868157
0
0
0
Reserved for future use
Reserved for future use
Reserved for future use
Reserved for future use
</Objects>
<Auto Pilot>
0
</Auto Pilot>
</GrAVITY>

Gravity Simulator » Powered by YaBB 2.1!
YaBB © 2000-2005. All Rights Reserved.