Forum: Grand Theft Auto Series Modding - Our GTA Modding Team is the best around. Tutorials & Topics related to modding your GTA games, trophies, and save files! Discuss GTA game modding with the knowledgeable members of PSX-Scene and the Official GTA IV Mod Team.


The above video goes away if you are a member and logged in, so log in now!




 
Would you like to get all the new info from
PSX-Scene in your email each day?




Want to learn more about the team keeping you up to date with the latest scene news?

Read about them now!

Check out our Developer bios, too!

 


User Tag List

Like Tree46Likes

Thread: [TUT] How to Compile Code + Example Scripts
  

Page 11 of 15 FirstFirst ... 9 10 11 12 13 ... LastLast
Results 101 to 110 of 149
  1. #101  
    Three-Socks's Avatar
    Three-Socks is online now Developer
    Join Date
    Feb 2011
    Posts
    362
    Downloads
    16
    Uploads
    0
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    83
    Likes Received
    308
    Quote Originally Posted by motorsports360 View Post
    really i would like to send an array of ints i dont even know if that is possible

    i just wanted to learn more about START_NEW_SCRIPT_WITH_ARGS tried to figure it out on my own before i asked

    dont really ask things unless i have to and you seem to be the only person who figured that native out

    and thanks for the help
    I wanted to pass an array too. But I couldn't get it working (hence the reason for 3 different scripts 3s_trainer_speed/steer/brake) Its possible it needs another script flag ticked. Or it could be a limitation of scocl.

    No problem.
    Reply With Quote  

  2. #102  
    Raeralus's Avatar
    Raeralus is offline Software Engineer
    Join Date
    Nov 2012
    Location
    0x456e676c616e64
    Posts
    143
    Downloads
    2
    Uploads
    0
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    11
    Likes Received
    45
    I keep running into internal compiler errors when attempting compilation of main.c for XMC 3.5p under Windows emulation on Ubuntu.

    This is the command line:
    Code:
    clear && wine "/media/ACER (Windows)/GTA MODS/IVPS3.Scocl/bin/scocl_old.exe" GTAIV "/media/ACER (Windows)/GTA MODS/IVPS3.Scocl/workspace/Project/main.c" "/media/ACER (Windows)/GTA MODS/IVPS3.Scocl/workspace/Project/output/"
    And this is the error:
    Code:
    "Z:\media\ACER (Windows)\GTA MODS\IVPS3.Scocl\bin\scocl_old.exe" GTAIV "/media/ACER (Windows)/GTA MODS/IVPS3.Scocl/workspace/Project/main.c" "/media/ACER (Windows)/GTA MODS/IVPS3.Scocl/workspace/Project/output/"
    /media/ACER (Windows)/GTA MODS/IVPS3.Scocl/workspace/Project/main.c compile started
    /media/ACER (Windows)/GTA MODS/IVPS3.Scocl/workspace/Project/main.c compile failed, compiler internal error, check params first, using: scocl.exe <[s]globals version> <filein> <dirout> <options>
    globals version : GTAIV/TLAD/TBOGT
    options : GLOBALSEG, KEEPTEMP, DEBUGOUTPUT
    examples : 
    normal script compiling : scocl.exe GTAIV "c:\gta\scripts\main.c" "c:\gta\scripts\out\" KEEPTEMP DEBUGOUTPUT
    compiling script with global seg (startup.sco): scocl.exe TLAD "c:\gta\scripts\startup.c" "c:\gta\scripts\out\" GLOBALSEG
    Update - 03/12/2012 08:09 AM
    I successfully compiled my first sco file. It worked on Windows for some strange reason...
    Last edited by Raeralus; 12-03-2012 at 03:09 AM.
    Colt likes this.
    Reply With Quote  

  3. #103  
    Three-Socks's Avatar
    Three-Socks is online now Developer
    Join Date
    Feb 2011
    Posts
    362
    Downloads
    16
    Uploads
    0
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    83
    Likes Received
    308
    Quote Originally Posted by Raeralus View Post
    I keep running into internal compiler errors when attempting compilation of main.c for XMC 3.5p under Windows emulation on Ubuntu.

    This is the command line:
    Code:
    clear && wine "/media/ACER (Windows)/GTA MODS/IVPS3.Scocl/bin/scocl_old.exe" GTAIV "/media/ACER (Windows)/GTA MODS/IVPS3.Scocl/workspace/Project/main.c" "/media/ACER (Windows)/GTA MODS/IVPS3.Scocl/workspace/Project/output/"
    And this is the error:
    Code:
    "Z:\media\ACER (Windows)\GTA MODS\IVPS3.Scocl\bin\scocl_old.exe" GTAIV "/media/ACER (Windows)/GTA MODS/IVPS3.Scocl/workspace/Project/main.c" "/media/ACER (Windows)/GTA MODS/IVPS3.Scocl/workspace/Project/output/"
    /media/ACER (Windows)/GTA MODS/IVPS3.Scocl/workspace/Project/main.c compile started
    /media/ACER (Windows)/GTA MODS/IVPS3.Scocl/workspace/Project/main.c compile failed, compiler internal error, check params first, using: scocl.exe <[s]globals version> <filein> <dirout> <options>
    globals version : GTAIV/TLAD/TBOGT
    options : GLOBALSEG, KEEPTEMP, DEBUGOUTPUT
    examples : 
    normal script compiling : scocl.exe GTAIV "c:\gta\scripts\main.c" "c:\gta\scripts\out\" KEEPTEMP DEBUGOUTPUT
    compiling script with global seg (startup.sco): scocl.exe TLAD "c:\gta\scripts\startup.c" "c:\gta\scripts\out\" GLOBALSEG
    Update - 03/12/2012 08:09 AM
    I successfully compiled my first sco file. It worked on Windows for some strange reason...
    This is similar to how I execute it under wine on my webserver.

    Code:
    wine "c:\Program Files\scocl\bin\scocl_old.exe" GTAIV "Z:\GTA\modmanager_maker\workspace\modmanager.c\" "Z:\GTA\modmanager_maker\output/"
    I'm not sure if this is the same on all set ups. But on mine under wine I had to make it point to the virtual shortcut "c:\" points where wine is installed and "z:\" points to the root of your hardrive. The "/" at the end was significant for me too.
    Reply With Quote  

  4. #104  
    ribonucleic's Avatar
    ribonucleic is offline Moderator & Developer
    Join Date
    Mar 2012
    Posts
    641
    Downloads
    4
    Uploads
    0
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    127
    Likes Received
    279
    who patched Scocl to use old Natives??
    Reply With Quote  

  5. #105  
    Three-Socks's Avatar
    Three-Socks is online now Developer
    Join Date
    Feb 2011
    Posts
    362
    Downloads
    16
    Uploads
    0
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    83
    Likes Received
    308
    Quote Originally Posted by ribonucleic View Post
    who patched Scocl to use old Natives??
    I did. Its just a simple hex edit on the exe. So scocl_old.exe will load nativeO.cfg and scocl_new loads nativeN.cfg instead of natives.cfg.
    ribonucleic, keredor and Colt like this.
    Reply With Quote  

  6. #106  
    LUCIFA is offline Member
    Join Date
    Mar 2012
    Posts
    62
    Downloads
    22
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    1
    Likes Received
    0
    hi i want to put mod scos in the mod slots i can use open iv and open script.img but cant find mod slot 1 , 2 ect... iv looked in all of the files from gta in open iv but no joy , any ideas? cheers

    you posted this same question in general help which is where it belongs but that also means that you are spamming the forum

    don't spam
    Last edited by ribonucleic; 01-15-2013 at 08:47 PM.
    Reply With Quote  

  7. #107  
    zorg93's Avatar
    zorg93 is online now Developer
    Join Date
    Jun 2012
    Posts
    256
    Downloads
    0
    Uploads
    0
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    50
    Likes Received
    142
    does anyone know how to initialise Vector3 variables. for example Vector3 temp = new Vector3(0,0,0); is initialisation in C#, and i put a constructor in the Vector3 struct but keep getting an error. Im asking this as im trying to work with Functions that return vectors but it always says uninitialised variable when i attempt to return a vector3, even if got its value from being a pointer in a native
    Reply With Quote  

  8. #108  
    ribonucleic's Avatar
    ribonucleic is offline Moderator & Developer
    Join Date
    Mar 2012
    Posts
    641
    Downloads
    4
    Uploads
    0
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    127
    Likes Received
    279
    Quote Originally Posted by zorg93 View Post
    does anyone know how to initialise Vector3 variables. for example Vector3 temp = new Vector3(0,0,0); is initialisation in C#, and i put a constructor in the Vector3 struct but keep getting an error. Im asking this as im trying to work with Functions that return vectors but it always says uninitialised variable when i attempt to return a vector3, even if got its value from being a pointer in a native
    try:
    PHP Code:
    Vector3 varname;
    varname.0.0;
    varname.0.0;
    varname.0.0
    Reply With Quote  

  9. #109  
    zorg93's Avatar
    zorg93 is online now Developer
    Join Date
    Jun 2012
    Posts
    256
    Downloads
    0
    Uploads
    0
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    50
    Likes Received
    142
    Quote Originally Posted by ribonucleic View Post
    try:
    PHP Code:
    Vector3 varname;
    varname.0.0;
    varname.0.0;
    varname.0.0
    i have tried that, but it just comes up as unnasigned variable when trying to return it in a function.
    is there anything like the null_string but for vectors
    Reply With Quote  

  10. #110  
    JDMAlex's Avatar
    JDMAlex is offline & developer
    Join Date
    Nov 2010
    Posts
    723
    Downloads
    5
    Uploads
    1
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    190
    Likes Received
    442
    Can u use a struct for your vector?
    Reply With Quote  

Page 11 of 15 FirstFirst ... 9 10 11 12 13 ... LastLast
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •