Joined: Fri Apr 24, 2009 9:43 pm Posts: 513 Location: Estonia
|
Noticed again one of the miss2 weird thing(s)/bug(s). This compiles and works OK #ifdef PC
MAP_ZONE B17 = ( 200 , 0 , 0 , 0 , 300 , 200 , 200 , 10 , 590 , 0 , 900 )
do_nowt
#endif Parsed in 0.008 seconds, using GeSHi 1.0.8.10 But if you mess it up to save some space in mis file: #ifdef PC MAP_ZONE B17 = ( 200 , 0 , 0 , 0 , 300 , 200 , 200 , 10 , 590 , 0 , 900 )
do_nowt #endif Parsed in 0.008 seconds, using GeSHi 1.0.8.10 It completely confuses miss2. It writes wrong stuff into scr file. I thought its bug in my compiler, wasted 2 days to figure out whats wrong. And again, its because of miss2 compiler bug. In new compiler this code "packing" is not a problem. You can write even this (miss2 doesnt allow this): #ifdef PC MAP_ZONE B17 = ( 200 , 0 , 0 , 0 , 300 , 200 , 200 , 10 , 590 , 0 , 900 ) do_nowt #endif Parsed in 0.008 seconds, using GeSHi 1.0.8.10 No probs. What a garbage this Visual Parse ++ was, what they used for miss2. And they asked so much money for it. EDIT: noticed bug in new compiler in "map_zone" command. Script like this caused some wrong indexes. Now it works. It was related to string headers
PLAYER_PED shaft = ( 44.5 , 102.0 , 2.0 ) 25 0
ARROW_DATA arrow
ARROW_DATA arrow_2
ARROW_DATA arrow_3
ARROW_DATA arrow_4
ARROW_DATA arrow_end
MAP_ZONE B01 = ( 0 , 0 , 0 , 0 , 200 , 0 , 0 , 0 , 1000 , 0 , 200 )
MAP_ZONE B02 = ( 0 , 0 , 0 , 0 , 300 , 0 , 0 , 0 , 1000 , 0 , 200 )
MAP_ZONE B03 = ( 0 , 0 , 0 , 0 , 200 , 0 , 0 , 0 , 1000 , 0 , 200 )
MAP_ZONE B04 = ( 0 , 0 , 0 , 0 , 300 , 0 , 0 , 0 , 1000 , 0 , 200 )
MAP_ZONE B05 = ( 0 , 0 , 0 , 0 , 400 , 0 , 0 , 0 , 1000 , 0 , 200 )
MAP_ZONE B06 = ( 0 , 0 , 0 , 0 , 200 , 0 , 0 , 0 , 1000 , 0 , 200 )
MAP_ZONE B07 = ( 0 , 0 , 0 , 0 , 300 , 0 , 0 , 0 , 1000 , 0 , 200 )
MAP_ZONE B08 = ( 0 , 0 , 0 , 0 , 400 , 0 , 0 , 0 , 1000 , 0 , 200 )
MAP_ZONE B09 = ( 400 , 100 , 100 , 500 , 600 , 0 , 0 , 0 , 0 , 1000 , 0 )
MAP_ZONE B10 = ( 400 , 100 , 100 , 500 , 600 , 0 , 0 , 0 , 0 , 1000 , 0 )
MAP_ZONE B11 = ( 300 , 100 , 500 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 100 )
MAP_ZONE B12 = ( 300 , 300 , 300 , 0 , 100 , 0 , 0 , 0 , 1000 , 0 , 100 )
MAP_ZONE B13 = ( 300 , 300 , 300 , 0 , 100 , 0 , 0 , 0 , 1000 , 0 , 100 )
MAP_ZONE B14 = ( 300 , 300 , 300 , 0 , 100 , 0 , 0 , 0 , 1000 , 0 , 100 )
MAP_ZONE B15 = ( 300 , 100 , 500 , 0 , 50 , 0 , 0 , 0 , 800 , 0 , 100 )
MAP_ZONE B16 = ( 300 , 100 , 500 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 100 )
#ifdef PC
MAP_ZONE B17 = ( 200 , 0 , 0 , 0 , 300 , 200 , 200 , 10 , 590 , 0 , 900 )
do_nowt
#endif
do_nowt
do_nowt
do_nowt
do_nowt
MAP_ZONE B18 = ( 300 , 100 , 500 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 100 )
MAP_ZONE B181 = ( 300 , 100 , 500 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 100 )
do_nowt
do_nowt
do_nowt
do_nowt
MAP_ZONE B184 = ( 300 , 100 , 500 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 100 )
do_nowt
levelstart
LEVELENDParsed in 0.013 seconds, using GeSHi 1.0.8.10
There is #ifdef PC and MAP_ZONE in it. String header ID was wrong for last MAP_ZONE. I assigned for some reason "variable_counter_number" to it but it should be "current_command_index_number". There are few other commands that use string headers but they should work fine. They already have correct indexes assigned. EDIT2: This also shows miss2 bug. Scr file is "messed up", some stuff is skipped and not even written to the file. LEVELSTART, LEVELEND is missing completely. Notice where the last */ is: // white top right*/
PLAYER_PED shaft = ( 44.5 , 102.0 , 2.0 ) 25 0
OBJ_DATA storagerocket8
/*
OBJ_DATA srpayshop01 = ( 122.0 , 115.0 , 2.0 ) 0 car_shop 2 // black bottom right
OBJ_DATA sprayshop02 = ( 103.0 , 115.0 , 2.0 ) 0 car_shop 5 // green bottom left
OBJ_DATA sprayshop03 = ( 103.0 , 97.0 , 2.0 ) 0 car_shop 10 // yellow top left
OBJ_DATA sprayshop04 = ( 122.0 , 97.0 , 2.0 ) 0 car_shop 33 // white top right*/
OBJ_DATA BOLLARD1 = ( 131.5 , 134.5 , 4.0 ) 90 mine
levelstart
levelendParsed in 0.009 seconds, using GeSHi 1.0.8.10
Move this */ down:
PLAYER_PED shaft = ( 44.5 , 102.0 , 2.0 ) 25 0
OBJ_DATA storagerocket8
/*
OBJ_DATA srpayshop01 = ( 122.0 , 115.0 , 2.0 ) 0 car_shop 2 // black bottom right
OBJ_DATA sprayshop02 = ( 103.0 , 115.0 , 2.0 ) 0 car_shop 5 // green bottom left
OBJ_DATA sprayshop03 = ( 103.0 , 97.0 , 2.0 ) 0 car_shop 10 // yellow top left
OBJ_DATA sprayshop04 = ( 122.0 , 97.0 , 2.0 ) 0 car_shop 33 // white top right
*/
OBJ_DATA BOLLARD1 = ( 131.5 , 134.5 , 4.0 ) 90 mine
levelstart
levelendParsed in 0.010 seconds, using GeSHi 1.0.8.10
And it generates correct scr file..
_________________ Always wear safety glasses while programming.
|
|