View Issue Details

IDProjectCategoryView StatusLast Update
0001329FSSCPgameplaypublic2007-09-01 13:58
Reporterthesource2 Assigned ToShade  
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Fixed in Version3.6.10 
Summary0001329: super-nova-start failes if there was sun-remove calls before it even if there is suns in the system left
DescriptionHere's the situation. In sm3-10 I add green sun in the same place as the Capella sun to make it look like super portal. 13 seconds after it I remove green sun (note - gold sun (Capella) is present!) and in 2 more seconds call super-nova-start. No super nova occurs. Please, reply asap! This bug halted my freespace2 upgrade progress :(
TagsNo tags attached.

Activities

taylor

2007-03-15 02:30

administrator   ~0007849

Attach the mission in question, it's far easier to figure out what's going when we can test with something.

2007-03-15 09:44

 

sm3-10.fs2 (140,676 bytes)

thesource2

2007-03-15 09:46

reporter   ~0007850

Here you go. I have one idea: it looks like add-sun-image adds sun to the beginning of the list. Perhaps remove-sun-image does not reassign sun id's after removal of sun from the beginning of the list so super-nova-start can not find the first sun in the list

taylor

2007-03-15 10:56

administrator   ~0007851

Suns are always added to the back, and never actually removed. They just are set to not render in the case of being removed, since we can't change the index offsets during a mission.

But having looked at the mission, and testing it, it just proves what I thought it was going to be: you can only do a supernova with one sun. You add an extra sun, which screws up the supernova processing and it will never trigger. And since the added sun is never fully removed, it still figures as a sun when counted, and so the supernova code sees two suns as being available in the mission and then fails to initiate.

thesource2

2007-03-15 11:02

reporter   ~0007852

Damn. Maybe I should use green bitmap instead of sun then.
However, it would really be nice if supernova can be started with first sun in the list no matter if there are other suns in system.

thesource2

2007-03-15 20:51

reporter   ~0007854

How to add my own bitmaps? I can only choose standard ones. May be I need to add something into some tbl?

Anyway, looks like bitmaps are rendered behind suns so it won't help. You are my last hope.

Goober5000

2007-03-15 21:26

administrator   ~0007857

I thought the supernova code was fixed to only work with the first sun in a mission?

thesource2

2007-03-15 21:48

reporter   ~0007858

I would be really great if it was true, but like taylor said, it only works with a single sun

taylor

2007-03-15 22:09

administrator   ~0007859

"I thought the supernova code was fixed to only work with the first sun in a mission?"

I remember asking the person who supposedly made the change what they had done, but never got a response. I have just never found any change in the code, or CVS logs, which actually deals with this. The supernova code is kinda hastily done, and I don't really like any bit of it, but I don't have time to work on fixing all of that myself.

I know that there are at least two ways around this problem, 1) being to just have the supernova work on the first sun only but not really care about the number of suns in a mission, and 2) being a change to the starfield code that I don't intend to make (nor should anyone else make it).

ARSPR

2007-03-16 17:49

reporter   ~0007860

If "some day" "someone" tweaks the supernova code, please take in mind this related issue: 0001132. I mean if it is possible to make the supernova sun still blind the player.

thesource2

2007-03-16 18:05

reporter   ~0007861

This "some day" shoulbe really soon. Until then my upgraded final mission is unplayable. I currently switched to adding LS Nebulas but I really need something to be done about this bug.

Shade

2007-08-18 07:20

developer   ~0008388

Last edited: 2007-08-18 08:08

Better late than never, I guess.

"I thought the supernova code was fixed to only work with the first sun in a mission?"

Sort of. I posted a fix once to make it work if there were multiple suns in a mission, and as a part of that, also to only work on one sun. Which would probably fix this bug. I never had CVS access though and I guess noone actually committed it for me since this issue is still here. I'll dig around and see if I can find the code.

[Edit] Found it, and brought it into line with 3.6.9. Uploaded a test build with the changes here: http://www.badongo.com/file/4075900 ; Also attaching a diff vs the current 3.6.9 branch so we can hopefully kill this bug.

2007-08-18 08:09

 

supernova_fix.zip (438 bytes)

Shade

2007-09-01 13:58

developer   ~0008457

Fixed. Supernova-start will now work if there are multiple suns in a mission.

Issue History

Date Modified Username Field Change
2007-03-14 21:58 thesource2 New Issue
2007-03-15 02:30 taylor Note Added: 0007849
2007-03-15 09:44 thesource2 File Added: sm3-10.fs2
2007-03-15 09:46 thesource2 Note Added: 0007850
2007-03-15 10:56 taylor Note Added: 0007851
2007-03-15 11:02 thesource2 Note Added: 0007852
2007-03-15 20:51 thesource2 Note Added: 0007854
2007-03-15 21:26 Goober5000 Note Added: 0007857
2007-03-15 21:48 thesource2 Note Added: 0007858
2007-03-15 22:09 taylor Note Added: 0007859
2007-03-16 17:49 ARSPR Note Added: 0007860
2007-03-16 18:05 thesource2 Note Added: 0007861
2007-08-18 07:20 Shade Note Added: 0008388
2007-08-18 08:07 Shade Note Edited: 0008388
2007-08-18 08:08 Shade Note Edited: 0008388
2007-08-18 08:09 Shade File Added: supernova_fix.zip
2007-08-18 14:32 Turey Status new => assigned
2007-08-18 14:32 Turey Assigned To => Shade
2007-09-01 13:58 Shade Status assigned => resolved
2007-09-01 13:58 Shade Fixed in Version => 3.6.10
2007-09-01 13:58 Shade Resolution open => fixed
2007-09-01 13:58 Shade Note Added: 0008457