Scripting errors.


(jaybird) #1

I’m running into some recurring map script issues. I haven’t modified any of the map script code the least bit (except for increasing max_script_accum_buffers up to 10), and these issues just started happening sometime recently. I can’t trace it back to any specific change that I have made, and looking at my diff’s nothing looks like it should be causing them to happen.

The two specific errors I keep running into are classic errors shrub used to produce:


'trigger_objective_info' targets multiple entities with targetname 'mg42_clip_3', the second one isn't a 'func_constructible'

on radar and


"info_limbo_camera cannot find target"

on fuel dump.

What’s interesting to note is that I can only produce these errors on the Windows Server 2003 platform (though I have not had the opportunity to really test it on XP, even though it’s not a viable server platform). I compile the mod with MSVC++ .NET 2003 and with Mingw32 in Linux, and both binaries will produce this error. My Linux builds of the mod do not produce these errors. It also does not happen routinely; it happens every few campaign rotations.

At first I was skeptical about the G_FindByTargetname function, as both errors follow a failed or halfway failed attempt to find an entity through this function. The error about the ‘func_constructible’, however, finds the target, but the eType is wrong (it makes sure it is ET_CONSTRUCTIBLE, but it turns out eType for the found entity is 0). This is, of course, making the assumption that G_FindByTargetname is finding the correct entity. Assuming that the function in fact is working correctly on my builds, the next problem I could see causing this issue is some sort of corruption in reading/parsing the mapscript. After pouring through lines of code and diff’s, I am finding that more and more less plausible, however. Again, none of the script code has changed.

What I’m wondering is if anyone has run into this issue, and if so, have any idea where the cause is or how to fix it. If anyone has any ideas at all, it would be much appreciated. This is a nagging bug that I’m unfortunately not having much luck on.


(jaybird) #2

bump

No one has ever encountered this?


(bani) #3

if you want data points, then i’ll submit ours: we’ve never had that problem. and we’ve modified the map scripting pretty heavily.


(jaybird) #4

This problem has caused me too much headache to simply disappear like it suddenly has. I was testing another server admin’s setup because he was getting crashing errors, and sure enough I was getting them. I went into the pk3’s finally, changed a minor detail (he had a close brace and open brace on one line between campaigns in the same file) and all of a sudden the crashing stopped. Perhaps there were oddities in the script itself or the pk3. All I can do about this one is :: shrug ::.

Perhaps you can help me out with some pointers on implementing compatibility with your extended scripting functions though. I’ve been working on this the last few days, and some stuff works well, other stuff doesn’t. Guess I’m having problems with ef_fakebmodel and the func_fakebrush stuff.

Heh, the people using my mod keep me rather busy and keep wanting more ;]