OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: matjoa on 20 Apr 2003, 16:41:07

Title: How can I debug the last part of my mission, without...
Post by: matjoa on 20 Apr 2003, 16:41:07

pass it from the begining?

Is there any way?

I only know the speed 4X but.... is there anything else?

TIA
JF.
Title: Re:How can I debug the last part of my mission, without...
Post by: macguba on 20 Apr 2003, 16:58:13
Oooohhhhh there are lots of tricks......

The first thing is to save a new copy of your mission.  That way, if [when] you screw anything up, the real thing is preserved.    Remember to change the original mission when you find a bug.  





That's just off the top of my head.    Anybody got any more?
Title: Re:How can I debug the last part of my mission, without...
Post by: matjoa on 20 Apr 2003, 19:40:34
Thank you for your quick answer.

As you said, it seems there are only two general ways:

1. Reducing the mission time (deleting the first part), but maybe harder due to the connections between first and last.

2. Reducing the mission difficulty, to pass it easier but whole mission though.

I'm thinking about you said about savegames, but it need a question:

When I do preview...my scripts are loaded to memory in that moment? or in the moment when are called?

If they were loaded when called (not at the begining), then I could put a savegame just before the calling script (or press Save manually), then modify the script, load the saved game, test it, modify it, load the saved game, again and again.....

TIA
JF.
Title: Re:How can I debug the last part of my mission, without...
Post by: macguba on 20 Apr 2003, 20:14:38
*racks brain* ......  yes I think that works .. test it using hints.
Title: Re:How can I debug the last part of my mission, without...
Post by: matjoa on 22 Apr 2003, 12:24:06
Yes, it works.

It seems that the scripts are loaded at run-time in the exact moment which they are needed.

But this technique is only useful to debug scripts, not for the editor's events.

Thank you.
JF.
Title: Re:How can I debug the last part of my mission, without...
Post by: vektorboson on 22 Apr 2003, 16:27:32
Hi,

one thing that can help you with debugging missions and scripts is my ingame console:

http://home.arcor.de/vektorboson/en/scripts.html (http://home.arcor.de/vektorboson/en/scripts.html)

You can execute scripts and set variables while playing the mission.