Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. The Criminal Enterprises
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Blood Money
      2. Frontier Pursuits
      3. Find Lobbies & Outlaws
      4. Help & Support
    3. Crews

    1. Grand Theft Auto Series

      1. Bugs*
      2. St. Andrews Cathedral
    2. GTA VI

    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    6. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    7. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Announcements

    2. Support

    3. Suggestions

*DO NOT* SHARE MEDIA OR LINKS TO LEAKED COPYRIGHTED MATERIAL. Discussion is allowed.

open img error modding gta san andreas


Gian_Yagami
 Share

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([email protected])

$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 :[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 colgate.gif

Link to comment
Share on other sites

 

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

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
 Share

  • 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.