Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: shiv on March 19, 2008, 12:16:46 pm

Title: Spawn....
Post by: shiv on March 19, 2008, 12:16:46 pm
I'm currently playing with "spawn" flag in tables. Here're two flags that I've included in one weapon:

Code: [Select]
"Spawn Cluster Bomb Baby, 14" "Spawn Cluster Baby,18"
The problem is that Cluster Bomb Baby is spawned, but Cluster baby not. Is there any chance to fix it or it's game engine limit?
Title: Re: Spawn....
Post by: Colonol Dekker on March 19, 2008, 12:48:56 pm
I made a triple spawning bomblet before derelict came out. I put it on the volition watch archives but got nil response. Called the murphy warhead. Dunno what happened to it :(
Title: Re: Spawn....
Post by: Wanderer on March 19, 2008, 12:56:28 pm
Check the debug spew from fs2_open.log from data directory (especially after running the debug build that is)...

There is something in the code along these lines which might appear in the log as well...
Quote
Illegal to have two spawn types for one weapon.
Ignoring weapon ...

EDIT: That is not to say it would be impossible to do it. It just shouldn't be possible with just using the weapons.tbl. It might be possible via some semi-arcane FRED magic but it certainly is possible to do so by using Lua scripting.
Title: Re: Spawn....
Post by: shiv on March 19, 2008, 02:28:26 pm
I didn't run debug (recent debug builds are crashing game :( ) but I see that code doesn't allow to spawn two things.
Would it be very hard to allow game code to spawn more than one spawn type for weapon?
Title: Re: Spawn....
Post by: Wanderer on March 19, 2008, 02:31:22 pm
If the game crashes when using debug build there usually is a very good and valid reason why it does this and such issues should be fixed. Check for example the fs2_open.log for possible problems.
Title: Re: Spawn....
Post by: shiv on March 19, 2008, 02:34:16 pm
Yeah... I've got it.
Code: [Select]
WARNING: "Illegal to have two spawn types for one weapon. Ignoring weapon Infyrno II"