Faster pwn compiler
#13

Since this has already been bumped, I would like to add an advice to improve slightly the compilation time: remove from your script all the things that can be loaded at runtime, such as the DynamicObjects.

For example if you have a block of code that looks like this
Code:
CreateDynamicObject(214, 2140.024, 2140.02, 242.22, 4.42, 340.3, 34.0);
CreateDynamicObject(214, 2140.024, 2140.02, 242.22, 4.42, 340.3, 34.0);
CreateDynamicObject(214, 2140.024, 2140.02, 242.22, 4.42, 340.3, 34.0);
[...]
You can simply move all these lines to an external text file, remove "CreateDynamicObject(" and ");" with Find+Replace and load the file using fread and sscanf.
Code:
while(fread(file, line))
{
    if(sscanf(line, "iffffff", model, x, y, z, rx, ry, rz))
        continue;
    CreateDynamicObject(model, x, y, z, rx, ry, rz);
}
Reply


Messages In This Thread
Faster pwn compiler - by Yves - 01.03.2014, 11:22
Re: Faster pwn compiler - by davve95 - 01.03.2014, 11:33
Re: Faster pwn compiler - by im - 01.03.2014, 12:27
Re: Faster pwn compiler - by Misiur - 01.03.2014, 12:43
Re: Faster pwn compiler - by Jochemd - 01.03.2014, 13:17
Re: Faster pwn compiler - by MP2 - 01.03.2014, 13:44
Re: Faster pwn compiler - by Mauzen - 01.03.2014, 13:47
Re: Faster pwn compiler - by xeeZ - 01.03.2014, 14:07
Re: Faster pwn compiler - by Yves - 01.03.2014, 20:05
Re: Faster pwn compiler - by ColeMiner - 02.03.2014, 14:56
Re: Faster pwn compiler - by dali123 - 26.05.2018, 22:24
Re: Faster pwn compiler - by cuber - 27.05.2018, 01:06
Re: Faster pwn compiler - by Sasino97 - 01.06.2018, 12:20
Re: Faster pwn compiler - by AmigaBlizzard - 08.06.2018, 18:21

Forum Jump:


Users browsing this thread: 1 Guest(s)