Gian_Yagami Posted December 1, 2011 Share Posted December 1, 2011 wich the eroor :NONAME_24 wait 0 0102: actor $hFILE in_sphere 2536.422 -1694.349 13.6471 radius 1.6 1.6 1.6 sphere 0 stopped_on_foot jf @NONAME_24 0102: $hFILE = openfile "CLEO\KAMEN_RIDER.IMG" 023C: load_special_actor 'FAIZ' as 1 // models 290-299 Model.Load(#PCJ600) Model.Load(#BALLAS1) Model.Load(#BALLAS2) Model.Load(#BALLAS3) 023C: load_special_actor 'DECADE' as 2 // models 290-299 Model.Load(#MP5LNG) Model.Load(#DESERTEAGLE) 038B: load_requested_models 04ED: load_animation "MONSTER" Marker.Disable([email protected]) $ONMISSION == 1 please help i Link to comment Share on other sites More sharing options...
Deji Posted December 1, 2011 Share Posted December 1, 2011 IMG files do not work like that. Link to comment Share on other sites More sharing options...
Gian_Yagami Posted December 2, 2011 Author Share Posted December 2, 2011 so, what's the code & opcode for that? thank you for answering Link to comment Share on other sites More sharing options...
Deji Posted December 2, 2011 Share Posted December 2, 2011 You can't load an IMG file from the script (I hate statements like this - technically you could make an IMG loader as a SCM Func but I've never looked into it before). Additional IMG files have to be added to gta.dat. Link to comment Share on other sites More sharing options...
Gian_Yagami Posted December 3, 2011 Author Share Posted December 3, 2011 (edited) and, then ? what we write for load custom .img ? Edited December 4, 2011 by Gian_Yagami Link to comment Share on other sites More sharing options...
Gian_Yagami Posted December 4, 2011 Author Share Posted December 4, 2011 hey ? Deiji Link to comment Share on other sites More sharing options...
Deji Posted December 4, 2011 Share Posted December 4, 2011 http://gtag.gtagaming.com/forums/index.php?showtopic=112 Link to comment Share on other sites More sharing options...
Gian_Yagami Posted December 5, 2011 Author Share Posted December 5, 2011 ya, i following that, but still crash... can you find the error ? i'm copy and edit simple mod mission from other for "example" // This file was decompiled using sascm.ini published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 13.10.2007{$VERSION 3.1.0027}{$CLEO .cs}//-------------MAIN---------------0000: NOP :[email protected] = Marker.CreateIconAndSphere(28, 2536.422, -1694.349, 13.6471):NONAME_24wait 0 0102: actor $PLAYER_ACTOR in_sphere 2536.422 -1694.349 13.6471 radius 1.6 1.6 1.6 sphere 0 stopped_on_foot jf @NONAME_24 023C: load_special_actor 'FAIZ555' as 1 // models 290-299 Model.Load(#PCJ600)Model.Load(#BALLAS1)Model.Load(#BALLAS2)Model.Load(#BALLAS3)023C: load_special_actor 'DECADE' as 2 // models 290-299Model.Load(#MP5LNG)Model.Load(#DESERT_EAGLE)038B: load_requested_models 04ED: load_animation "GANGS" Marker.Disable([email protected]) $ONMISSION == 1 :NONAME_148wait 0 if and Model.Available(#PCJ600) Model.Available(#BALLAS1) Model.Available(#BALLAS2) Model.Available(#BALLAS3) Model.Available(#MP5LNG) Model.Available(#MP5LNG) Model.Available(#DESERT_EAGLE)023D: special_actor 1 loaded 023D: special_actor 2 loaded jf @NONAME_148 :NONAME_203wait 0 if 04EE: animation "GANGS" loaded jf @NONAME_203 [email protected] = Actor.Create(CivMale, #SPECIAL01, 2535.664, -1711.413, 13.4528)Actor.Angle([email protected]) = 92.0506Actor.PutAt($hFILE, 2531.636, -1711.278, 13.463)Actor.Angle($hFILE) = 267.9048Player.CanMove($PLAYER_CHAR) = False02A3: enable_widescreen 1 Camera.SetPosition(2533.352, -1704.289, 13.3828, 0.0, 0.0, 0.0)Camera.PointAt(2533.238, -1717.788, 13.5119, 2)0605: actor [email protected] perform_animation_sequence "PRTIAL_GNGTLKA" IFP_file "GANGS" 4.0 loop 1 0 0 0 time -1 // versionA 0605: actor $hFILE perform_animation_sequence "PRTIAL_GNGTLKC" IFP_file "GANGS" 4.0 loop 1 0 0 0 time -1 // versionA 00BC: show_text_highpriority GXT 'HCISI' time 3000 flag 0 wait 3000 00BC: show_text_highpriority GXT 'BCWAT' time 3000 flag 0 wait 3000 00BC: show_text_highpriority GXT 'HWTGB' time 3000 flag 0 wait 3000 00BC: show_text_highpriority GXT 'TMFO' time 3000 flag 0 wait 2000 0687: clear_actor [email protected] task 0687: clear_actor $hFILE task Actor.DestroyInstantly([email protected])Camera.Restore_WithJumpCut02A3: enable_widescreen 0 Player.CanMove($PLAYER_CHAR) = [email protected] = Pickup.Create(1242, 3, 2533.86, -1692.545, 13.684)[email protected] = Pickup.Create(1240, 3, 2531.971, -1691.268, 13.7228)[email protected] = Car.Create(#PCJ600, 2509.176, -1671.266, 13.0802)Car.Angle([email protected]) = [email protected] = Marker.CreateAboveCar([email protected])Marker.SetColor([email protected], 1)00BC: show_text_highpriority GXT 'GITC' time 3000 flag 0 :NONAME_666wait 0 if or not Car.Wrecked([email protected]) not Actor.Dead($hFILE)jf @NONAME_1826 if Actor.InCar($hFILE, [email protected])jf @NONAME_666 00BC: show_text_highpriority GXT 'GTBSD' time 3000 flag 0 Marker.Disable([email protected])018A: [email protected] = create_checkpoint_at 2580.396 -2113.083 1.2353 03BC: [email protected] = create_sphere_at 2580.396 -2113.083 1.2353 radius 3.0 :NONAME_776wait 0 if or not Car.Wrecked([email protected]) not Actor.Dead($hFILE)jf @NONAME_1826 if 0103: actor $hFILE in_sphere 2580.396 -2113.083 1.2353 radius 3.0 3.0 3.0 sphere 0 stopped_in_car jf @NONAME_776 Marker.Disable([email protected])03BD: destroy_sphere [email protected] Player.CanMove($PLAYER_CHAR) = False02A3: enable_widescreen 1 Camera.SetPosition(2571.298, -2131.141, 0.2417, 0.0, 0.0, 0.0)Camera.PointAt(2553.847, -2131.96, 0.1888, 2)[email protected] = Actor.Create(CivMale, #SPECIAL02, 2559.72, -2135.74, -0.0114)Actor.Angle([email protected]) = [email protected] = Actor.Create(Gang1, #BALLAS1, 2559.714, -2133.241, 0.1261)Actor.Angle([email protected]) = [email protected] = Actor.Create(Gang1, #BALLAS2, 2554.731, -2130.668, 0.2599)Actor.Angle([email protected]) = [email protected] = Actor.Create(Gang1, #BALLAS3, 2554.995, -2130.374, 0.276)Actor.Angle([email protected]) = 271.006701B2: give_actor [email protected] weapon 31 ammo 100000 // Load the weapon model before using this 01B2: give_actor [email protected] weapon 29 ammo 100000 // Load the weapon model before using this 01B2: give_actor [email protected] weapon 29 ammo 100000 // Load the weapon model before using this 01B2: give_actor [email protected] weapon 29 ammo 100000 // Load the weapon model before using this 0687: clear_actor [email protected] task 0687: clear_actor [email protected] task 01B9: set_actor [email protected] armed_weapon_to 31 01B9: set_actor [email protected] armed_weapon_to 29 01B9: set_actor [email protected] armed_weapon_to 29 01B9: set_actor [email protected] armed_weapon_to 29 081A: set_actor [email protected] weapon_skill_to 0 0946: set_actor [email protected] actions_uninterupted_by_weapon_fire 1 0946: set_actor [email protected] actions_uninterupted_by_weapon_fire 1 0946: set_actor [email protected] actions_uninterupted_by_weapon_fire 1 0946: set_actor [email protected] actions_uninterupted_by_weapon_fire 1 087E: set_actor [email protected] weapon_droppable 0 087E: set_actor [email protected] weapon_droppable 0 087E: set_actor [email protected] weapon_droppable 0 087E: set_actor [email protected] weapon_droppable 0 0605: actor [email protected] perform_animation_sequence "PRTIAL_GNGTLKB" IFP_file "GANGS" 4.0 loop 1 0 0 0 time -1 // versionA 0605: actor [email protected] perform_animation_sequence "PRTIAL_GNGTLKD" IFP_file "GANGS" 4.0 loop 1 0 0 0 time -1 // versionA 00BC: show_text_highpriority GXT 'IGIT' time 3000 flag 0 wait 2000 Player.CanMove($PLAYER_CHAR) = True02A3: enable_widescreen 0 Camera.Restore_WithJumpCut062F: [email protected] = create_group_type 0 0630: put_actor [email protected] in_group [email protected] as_leader 0631: put_actor [email protected] in_group [email protected] 0631: put_actor [email protected] in_group [email protected] 0631: put_actor [email protected] in_group [email protected] 05E2: AS_actor [email protected] kill_actor $hFILE 05E2: AS_actor [email protected] kill_actor $hFILE 05E2: AS_actor [email protected] kill_actor $hFILE 05E2: AS_actor [email protected] kill_actor $hFILE [email protected] = Marker.CreateAboveActor([email protected])[email protected] = Marker.CreateAboveActor([email protected])[email protected] = Marker.CreateAboveActor([email protected])[email protected] = Marker.CreateAboveActor([email protected])Marker.SetColor([email protected], 0)Marker.SetColor([email protected], 1073774847)Marker.SetColor([email protected], 1073774847)Marker.SetColor([email protected], 1073774847):NONAME_1467wait 0 if not Actor.Dead($hFILE)jf @NONAME_1826 if and Actor.Dead([email protected]) Actor.Dead([email protected]) Actor.Dead([email protected]) Actor.Dead([email protected])jf @NONAME_1467 Marker.Disable([email protected])Marker.Disable([email protected])Marker.Disable([email protected])Marker.Disable([email protected])Actor.StorePos([email protected], [email protected], [email protected], [email protected])[email protected] = Pickup.Create(1254, 3, [email protected], [email protected], [email protected])04C4: store_coords_to [email protected] [email protected] [email protected] from_actor [email protected] with_offset 0.0 -3.0 0.0 Camera.SetPosition([email protected], [email protected], [email protected], 0.0, 0.0, 0.0)Camera.PointAt([email protected], [email protected], [email protected], 2)0512: show_permanent_text_box 'CHBH' 03DC: [email protected] = create_marker_above_pickup [email protected] Marker.SetColor([email protected], 0):NONAME_1665wait 0 if not Actor.Dead($hFILE)jf @NONAME_1826 if Pickup.Picked_up([email protected])jf @NONAME_1665 03E6: remove_text_box Pickup.Destroy([email protected])Pickup.Destroy([email protected])Pickup.Destroy([email protected])Camera.Restore0394: play_music 1 01E3: show_text_1number_styled GXT 'M_PASS' number 2000 time 5000 style 1 // MISSION PASSED!~n~~w~$~1~Player.Money($PLAYER_CHAR) += 2000 $ONMISSION == 0 Actor.RemoveReferences([email protected])Car.RemoveReferences([email protected])Actor.RemoveReferences([email protected])Actor.RemoveReferences([email protected])Actor.RemoveReferences([email protected])Model.Destroy(#PCJ600)Model.Destroy(#DESERT_EAGLE)Model.Destroy(#MP5LNG)Model.Destroy(#BALLAS1)Model.Destroy(#BALLAS2)Model.Destroy(#BALLAS3)04EF: release_animation "GANGS" jump @NONAME_2 :NONAME_182600BA: show_text_styled GXT 'M_FAIL' time 5000 style 1 // ~r~MISSION FAILED! $ONMISSION == 0 Actor.RemoveReferences([email protected])Car.RemoveReferences([email protected])Actor.RemoveReferences([email protected])Actor.RemoveReferences([email protected])Actor.RemoveReferences([email protected])04EF: release_animation "GANGS" Model.Destroy(#PCJ600)Model.Destroy(#DESERT_EAGLE)Model.Destroy(#MP5LNG)Model.Destroy(#BALLAS1)Model.Destroy(#BALLAS2)Model.Destroy(#BALLAS3)jump @NONAME_2 and i enter this code into gta.dat ## Load IDEs first, then the models and after that the IPLs#IMG DATA\PATHS\CARREC.IMGIMG DATA\SCRIPT\SCRIPT.IMGIMG MODELS\CUTSCENE.IMGCLEO\KAMEN_RIDER.IMGSPLASH loadsc2 sorry troublesome Link to comment Share on other sites More sharing options...
Wesser Posted December 5, 2011 Share Posted December 5, 2011 IMG is missed before your file path in gta.dat file. 012 345 678 9A BCD EFG HIJK LMN OPQR STUV WX YZ Link to comment Share on other sites More sharing options...
Deji Posted December 6, 2011 Share Posted December 6, 2011 Your code also has quite a few bugs, the largest of all is that a char handle seemingly isn't stored in $hFile but you keep using it as such. Try and fix these things as well Link to comment Share on other sites More sharing options...
Gian_Yagami Posted December 6, 2011 Author Share Posted December 6, 2011 IMG is missed before your file path in gta.dat file. I'm sure the .img file it's existing Link to comment Share on other sites More sharing options...
Gian_Yagami Posted December 6, 2011 Author Share Posted December 6, 2011 Your code also has quite a few bugs, the largest of all is that a char handle seemingly isn't stored in $hFile but you keep using it as such. Try and fix these things as well i'm try the simple mission original from that and 100% work after i edit a simple mission that was, even to crash.. What I just re-create ? Link to comment Share on other sites More sharing options...
Gian_Yagami Posted December 6, 2011 Author Share Posted December 6, 2011 (edited) oh yes, it's work, thanks. sorry troublesome Edited December 8, 2011 by Gian_Yagami Link to comment Share on other sites More sharing options...
Gian_Yagami Posted December 9, 2011 Author Share Posted December 9, 2011 can you help me again ? can you check it ? http://www.gtaforums.com/index.php?showtop...entry1060929842 thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now