Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ SMAUG
➜ SMAUG coding
➜ Silly asteroids...
It is now over 60 days since the last post. This thread is closed.
Refresh page
Pages: 1
2
3
4
Posted by
| Nick Cash
USA (626 posts) Bio
|
Date
| Reply #45 on Sat 17 Apr 2004 06:16 AM (UTC) |
Message
|
Fri Apr 16 22:14:49 2004 :: Loading asteroids
Fri Apr 16 22:14:49 2004 :: Loading asteroids...
Fri Apr 16 22:14:49 2004 :: terra1.ast
Fri Apr 16 22:14:49 2004 :: terra2.ast
Fri Apr 16 22:14:49 2004 :: terra3.ast
Fri Apr 16 22:14:49 2004 :: Done asteroids
It appears commenting the stuff out fixed it. Hmm, odd. I think the problem must be in either A) extract_asteroid or B) asteroid_to_system. |
~Nick Cash
http://www.nick-cash.com | Top |
|
Posted by
| Nick Cash
USA (626 posts) Bio
|
Date
| Reply #46 on Sat 17 Apr 2004 06:26 AM (UTC) |
Message
| Hmm, I just thought of something. What exactly is the significance of using extract_asteroid in the load_asteroid_file function? The starsystem will ALWAYS be NULL making the function return immediately. Not only that but also extract_Asteroid is called within asteroid_to_system. |
~Nick Cash
http://www.nick-cash.com | Top |
|
Posted by
| Nick Cash
USA (626 posts) Bio
|
Date
| Reply #47 on Sat 17 Apr 2004 06:54 AM (UTC) Amended on Sat 17 Apr 2004 06:55 AM (UTC) by Nick Cash
|
Message
| Finally Fixed! Woot!
extract_asteroid( asteroid );
asteroid_to_system( asteroid , starsystem_from_name(asteroid->home_system) );
That was the malicious code, in load_asteroid_file. I replaced it with:
if ( asteroid->timer == 0 )
asteroid->timer = -1;
asteroid->starsystem = starsystem_from_name( asteroid->home_system );
This allows the code to handle the addition of the asteroid to a system. Anyways, fixed version is at http://ew.xidus.net/code/3.0a.c if you wish to have a look. If not, you can just wait till the snippet version comes out. :)
Thanks to everyone, especailly Nick who got me lookin in the right spot. |
~Nick Cash
http://www.nick-cash.com | Top |
|
Posted by
| Nick Cash
USA (626 posts) Bio
|
Date
| Reply #48 on Mon 21 Jun 2004 05:51 AM (UTC) |
Message
| Ah, finally, the glorious day. I have officialy released version 1.0 of the Asteroid snippet. You can download it from my web site by going to http://ew.xidus.net/modules.php?name=Downloads&d_op=viewdownload&cid=1 and finding the one called Code Driven asteroids. Thanks to everyone who helpped! |
~Nick Cash
http://www.nick-cash.com | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
113,020 views.
This is page 4, subject is 4 pages long:
1
2
3
4
It is now over 60 days since the last post. This thread is closed.
Refresh page
top