Jump to content

open img error modding gta san andreas


Gian_Yagami

Recommended Posts

wich the eroor confused.gif

 

: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(0@)

$ONMISSION == 1

 

please help i

Link to comment
Share on other sites

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

and, then ? dontgetit.gificon14.gif

 

what we write for load custom .img ?

Edited by Gian_Yagami
Link to comment
Share on other sites

ya, i following that, but still crash... angry.gif

can you find the error ?

i'm copy and edit simple mod mission from other for "example" ph34r.gif

 

 

// 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 :NONAME_20@ = 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(0@) $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 1@ = Actor.Create(CivMale, #SPECIAL01, 2535.664, -1711.413, 13.4528)Actor.Angle(1@) = 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 1@ 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 1@ task 0687: clear_actor $hFILE task Actor.DestroyInstantly(1@)Camera.Restore_WithJumpCut02A3: enable_widescreen 0 Player.CanMove($PLAYER_CHAR) = True20@ = Pickup.Create(1242, 3, 2533.86, -1692.545, 13.684)21@ = Pickup.Create(1240, 3, 2531.971, -1691.268, 13.7228)2@ = Car.Create(#PCJ600, 2509.176, -1671.266, 13.0802)Car.Angle(2@) = 349.4163@ = Marker.CreateAboveCar(2@)Marker.SetColor(3@, 1)00BC: show_text_highpriority GXT 'GITC' time 3000 flag 0 :NONAME_666wait 0 if or  not Car.Wrecked(2@)  not Actor.Dead($hFILE)jf @NONAME_1826 if   Actor.InCar($hFILE, 2@)jf @NONAME_666 00BC: show_text_highpriority GXT 'GTBSD' time 3000 flag 0 Marker.Disable(3@)018A: 3@ = create_checkpoint_at 2580.396 -2113.083 1.2353 03BC: 4@ = create_sphere_at 2580.396 -2113.083 1.2353 radius 3.0 :NONAME_776wait 0 if or  not Car.Wrecked(2@)  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(3@)03BD: destroy_sphere 4@ 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)5@ = Actor.Create(CivMale, #SPECIAL02, 2559.72, -2135.74, -0.0114)Actor.Angle(5@) = 357.24686@ = Actor.Create(Gang1, #BALLAS1, 2559.714, -2133.241, 0.1261)Actor.Angle(6@) = 183.65857@ = Actor.Create(Gang1, #BALLAS2, 2554.731, -2130.668, 0.2599)Actor.Angle(7@) = 267.31928@ = Actor.Create(Gang1, #BALLAS3, 2554.995, -2130.374, 0.276)Actor.Angle(8@) = 271.006701B2: give_actor 5@ weapon 31 ammo 100000 // Load the weapon model before using this 01B2: give_actor 6@ weapon 29 ammo 100000 // Load the weapon model before using this 01B2: give_actor 7@ weapon 29 ammo 100000 // Load the weapon model before using this 01B2: give_actor 8@ weapon 29 ammo 100000 // Load the weapon model before using this 0687: clear_actor 5@ task 0687: clear_actor 6@ task 01B9: set_actor 5@ armed_weapon_to 31 01B9: set_actor 6@ armed_weapon_to 29 01B9: set_actor 7@ armed_weapon_to 29 01B9: set_actor 8@ armed_weapon_to 29 081A: set_actor 5@ weapon_skill_to 0 0946: set_actor 5@ actions_uninterupted_by_weapon_fire 1 0946: set_actor 6@ actions_uninterupted_by_weapon_fire 1 0946: set_actor 7@ actions_uninterupted_by_weapon_fire 1 0946: set_actor 8@ actions_uninterupted_by_weapon_fire 1 087E: set_actor 5@ weapon_droppable 0 087E: set_actor 6@ weapon_droppable 0 087E: set_actor 7@ weapon_droppable 0 087E: set_actor 8@ weapon_droppable 0 0605: actor 5@ perform_animation_sequence "PRTIAL_GNGTLKB" IFP_file "GANGS" 4.0 loop 1 0 0 0 time -1 // versionA 0605: actor 6@ 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: 9@ = create_group_type 0 0630: put_actor 5@ in_group 9@ as_leader 0631: put_actor 6@ in_group 9@ 0631: put_actor 7@ in_group 9@ 0631: put_actor 8@ in_group 9@ 05E2: AS_actor 5@ kill_actor $hFILE 05E2: AS_actor 6@ kill_actor $hFILE 05E2: AS_actor 7@ kill_actor $hFILE 05E2: AS_actor 8@ kill_actor $hFILE 10@ = Marker.CreateAboveActor(5@)11@ = Marker.CreateAboveActor(6@)12@ = Marker.CreateAboveActor(7@)13@ = Marker.CreateAboveActor(8@)Marker.SetColor(10@, 0)Marker.SetColor(11@, 1073774847)Marker.SetColor(12@, 1073774847)Marker.SetColor(13@, 1073774847):NONAME_1467wait 0 if   not Actor.Dead($hFILE)jf @NONAME_1826 if and  Actor.Dead(5@)  Actor.Dead(6@)  Actor.Dead(7@)  Actor.Dead(8@)jf @NONAME_1467 Marker.Disable(10@)Marker.Disable(11@)Marker.Disable(12@)Marker.Disable(13@)Actor.StorePos(5@, 14@, 15@, 16@)17@ = Pickup.Create(1254, 3, 14@, 15@, 16@)04C4: store_coords_to 30@ 31@ 32@ from_actor 5@ with_offset 0.0 -3.0 0.0 Camera.SetPosition(30@, 31@, 32@, 0.0, 0.0, 0.0)Camera.PointAt(14@, 15@, 16@, 2)0512: show_permanent_text_box 'CHBH' 03DC: 25@ = create_marker_above_pickup 17@ Marker.SetColor(25@, 0):NONAME_1665wait 0 if   not Actor.Dead($hFILE)jf @NONAME_1826 if   Pickup.Picked_up(17@)jf @NONAME_1665 03E6: remove_text_box Pickup.Destroy(17@)Pickup.Destroy(20@)Pickup.Destroy(21@)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(5@)Car.RemoveReferences(2@)Actor.RemoveReferences(6@)Actor.RemoveReferences(7@)Actor.RemoveReferences(8@)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(5@)Car.RemoveReferences(2@)Actor.RemoveReferences(6@)Actor.RemoveReferences(7@)Actor.RemoveReferences(8@)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 colgate.gif

Link to comment
Share on other sites

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 wink.gif

Link to comment
Share on other sites

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 wink.gif

i'm try the simple mission original from that and 100% work

Shifty41s_beerhatsmilie2.gif

 

after i edit a simple mission that was, even to crash.. facedesk.gif

 

What I just re-create ?

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.