View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0000467 | FSSCP | gameplay | public | 2005-07-11 21:32 | 2005-07-22 03:33 |
| Reporter | Axem | Assigned To | Goober5000 | ||
| Priority | normal | Severity | crash | Reproducibility | always |
| Status | resolved | Resolution | open | ||
| Summary | 0000467: Modified string variables causes CTD | ||||
| Description | The basic premise of the crash happens like this. I have three string variables, A, B, and T. A has a value of Apple B has a value of Orange T has a value of Temp Through the modify variable sexps, I change A to Orange and B to Apple using T as an inbetween. Once the variables are changed, I wish to use the A and B in a few sexps. However when the sexps with the modified variables are called, it CTDs without any warnings. It might be worth noting, that the variable exchange and the use of the sexps are in the same event. | ||||
| Tags | No tags attached. | ||||
|
|
Test mission? |
|
2005-07-12 00:01
|
|
|
|
Uploaded. Pressing 1, 2, and 3 will do the exchanging and using of the variables. |
|
|
Don't have time tonight to debug this more but this is what I've found so far: 1) the max token length is 31 characters, "@AppleShip[GTF Hercules Mark II]" is 32. 2) pressing 1 will assign "Temp" to AppleShip and since "Temp" isn't a ship name it dies when it tries to set it. 3) pressing 2 has some hud shield problem with PlayerShip getting GVF Serapis, but that could be because I made the mission change to fix 0000002 or some other reason. haven't checked that out any more. I'll play with it more tomorrow if I can. |
|
|
'K I tried it with an Ares instead of a Herc II (Damn names). Still crashes. Doesn't FRED execute the sexps from top to bottom? The very first modify-variable is overwritting TempShip with AppleShip, so "Temp" shouldn't be used at all. But, I tried setting the initial Temp Variable value to GTF Myrmidon anyway. Still crashes. |
|
|
The "Temp" problem is from TEMP rather than TempShip, the third modify-variable for number 1 (and it does go top-down). That's a problem with all three events actually, TEMP gets assigned to whatever rather than the other way around. I don't know if that's the only problem but would probably cause a crash the first time you hit either one of the keys. Once TEMP gets set to something other than "Temp" though it will work for everything. Not sure why the Serapis is causing a crash, I'll look into that tomorrow. |
|
2005-07-12 04:53
|
|
|
|
Oops, I seem to have made two variables without noticing it. :-\ Well, in an interesting turn of events, that mission now works as it should. I can cycle through all the ships without crashing. But when I replace the Ares with a Herc and the Serapis with a Myrmidon (like it will be in the end) it crashes. I've uploaded that mission for looking at. |
|
|
Finally got around to checking this out. It was yet another bug in my change-ship-class sexp... when changing to a smaller ship, the hull and shield strength would go out of range. I changed it to keep the same percentages. Though you might want to revise your sexps for the mission itself. There's a bit of hysteresis when the ships cycle classes: they flicker a few times before settling on their new values. I'll update my 7-19 thread with the new build. |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2005-07-11 21:32 | Axem | New Issue | |
| 2005-07-11 23:20 | taylor | Note Added: 0002749 | |
| 2005-07-12 00:01 | Axem | File Added: axm_stringtest.fs2 | |
| 2005-07-12 00:02 | Axem | Note Added: 0002750 | |
| 2005-07-12 03:47 | taylor | Note Added: 0002751 | |
| 2005-07-12 03:47 | taylor | Status | new => assigned |
| 2005-07-12 03:47 | taylor | Assigned To | => taylor |
| 2005-07-12 04:04 | Axem | Note Added: 0002752 | |
| 2005-07-12 04:28 | taylor | Note Added: 0002753 | |
| 2005-07-12 04:53 | Axem | File Added: axm_stringtest2.fs2 | |
| 2005-07-12 04:53 | Axem | Note Added: 0002754 | |
| 2005-07-22 03:33 | Goober5000 | Note Added: 0002838 | |
| 2005-07-22 03:33 | Goober5000 | Assigned To | taylor => Goober5000 |
| 2005-07-22 03:33 | Goober5000 | Status | assigned => resolved |
| 2005-07-22 03:33 | Goober5000 | Summary | Modified string cariables causes CTD => Modified string variables causes CTD |