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 Tree33Likes

Thread: Old Tutorial for Script modding (outdated)
  

Page 6 of 12 FirstFirst ... 4 5 6 7 8 ... LastLast
Results 51 to 60 of 113
  1. #51  
    HuN's Avatar
    HuN
    HuN is online now Moderator
    Join Date
    Feb 2012
    Posts
    473
    Downloads
    2
    Uploads
    0
    Mentioned
    28 Post(s)
    Tagged
    1 Thread(s)
    Likes Given
    473
    Likes Received
    417
    Quote Originally Posted by JDMAlex View Post
    hope you dont mind Three-Socks.. I compiled your code with the offline trainer.. maybe help people with placments that don't have pc's that cant run iv (like myself)
    wow !!!

    thanks everyone ... ill test it later today

    edit : tested ! XYZ and header display works fine ...

    2nd edit : i used the displayed coordinates to create a vehicle placement , works perfecly !!

    its a great work
    Last edited by HuN; 02-19-2012 at 10:26 AM.

  2. #52  
    nativesith's Avatar
    nativesith is offline Moderator
    Join Date
    Jun 2011
    Location
    Los Santos
    Posts
    1,393
    Downloads
    12
    Uploads
    7
    Mentioned
    39 Post(s)
    Tagged
    2 Thread(s)
    Likes Given
    1003
    Likes Received
    672
    Feel sticky all of a sudden . Great work everyone BTW.

  3. #53  
    JDMAlex's Avatar
    JDMAlex is online now & developer
    Join Date
    Nov 2010
    Posts
    742
    Downloads
    5
    Uploads
    1
    Mentioned
    9 Post(s)
    Tagged
    1 Thread(s)
    Likes Given
    204
    Likes Received
    467
    Quote Originally Posted by HuN View Post
    wow !!!

    thanks everyone ... ill test it later today

    edit : tested ! XYZ and header display works fine ...

    2nd edit : i used the displayed coordinates to create a vehicle placement , works perfecly !!

    its a great work


    good to knw looking at creating pickups and new spawn locaion

  4. #54  
    HuN's Avatar
    HuN
    HuN is online now Moderator
    Join Date
    Feb 2012
    Posts
    473
    Downloads
    2
    Uploads
    0
    Mentioned
    28 Post(s)
    Tagged
    1 Thread(s)
    Likes Given
    473
    Likes Received
    417
    alright , im stuck and its very stupîd ...

    compile(d)bat in Scocomplier cant find path to Myscript.c , i used path example given in 1st post for " files(d)txt " and tryed several other path and i always get " path cant be found " message when i use it ...

    - im on win 7
    - Scocompliler is on root of C:
    - path in files(d)txt is " C:\ScoCompiler\ScoCompiler\Sources\Myscript(d)c "
    - used notepad++ to create Myscript(d)c and properly saved it to " C:\ScoCompiler\ScoCompiler\Sources "

    what the hell i do wrong ? ... seems i miss " GTAIVModdingTools\setup(d)msi " is it the reason why it fail ? ... it wasnt in filepack download , do i need to get it elsewhere ?


    note: (d) are dots , forums think they are links .
    Last edited by HuN; 02-26-2012 at 05:45 AM.

  5. #55  
    JDMAlex's Avatar
    JDMAlex is online now & developer
    Join Date
    Nov 2010
    Posts
    742
    Downloads
    5
    Uploads
    1
    Mentioned
    9 Post(s)
    Tagged
    1 Thread(s)
    Likes Given
    204
    Likes Received
    467
    Quote Originally Posted by HuN View Post
    alright , im stuck and its very stupîd ...

    compile(d)bat in Scocomplier cant find path to Myscript.c , i used path example given in 1st post for " files(d)txt " and tryed several other path and i always get " path cant be found " message when i use it ...

    - im on win 7
    - Scocompliler is on root of C:
    - path in files(d)txt is " C:\ScoCompiler\ScoCompiler\Sources\Myscript(d)c "
    - used notepad++ to create Myscript(d)c and properly saved it to " C:\ScoCompiler\ScoCompiler\Sources "

    what the hell i do wrong ? ... seems i miss " GTAIVModdingTools\setup(d)msi " is it the reason why it fail ? ... it wasnt in filepack download , do i need to get it elsewhere ?


    note: (d) are dots , forums think they are links .
    you may just have a few things out of place. follow these steps:

    make sure your compler is in C:\ScoCompiler\ScoCompiler\Compiler\
    make sure compile.bat is in C:\ScoCompiler\ScoCompiler\

    check if compile.bat"s code is the same as below (you can check by right click and edit)

    Code:
    @ECHO OFF
    :loop
    CLS
    FOR /F %%G IN (Files.txt) DO Compiler\scocl.exe GTAIV "%%G" "C:\ScoCompiler\ScoCompiler\Output\"
    @ECHO Compiling Completed.
    @ECHO Press Enter To Recompile.
    PAUSE
    goto loop
    make sure files.txt is in C:\ScoCompiler\ScoCompiler\

    check files.txt

    for your sco you should have C:\ScoCompiler\ScoCompiler\Sources\Myscript.c
    HuN likes this.

  6. #56  
    HuN's Avatar
    HuN
    HuN is online now Moderator
    Join Date
    Feb 2012
    Posts
    473
    Downloads
    2
    Uploads
    0
    Mentioned
    28 Post(s)
    Tagged
    1 Thread(s)
    Likes Given
    473
    Likes Received
    417
    it works ! code within compile(d)bat was wrong on 4th line ...here how it was :

    FOR /F %%G IN (Files(d)txt) DO Sources\Compiler\scocl(d)exe GTAIV "%%G" "C:\ScoCompiler\ScoCompiler\Output\"
    note : (d) are dots

    so i removed " Sources\ " and saved , then i was able to compile Myscript(d)c ... moving on to next step .

    thanks alot
    Last edited by JDMAlex; 02-26-2012 at 02:04 PM.

  7. #57  
    JDMAlex's Avatar
    JDMAlex is online now & developer
    Join Date
    Nov 2010
    Posts
    742
    Downloads
    5
    Uploads
    1
    Mentioned
    9 Post(s)
    Tagged
    1 Thread(s)
    Likes Given
    204
    Likes Received
    467
    my bad .. Ill fix it later

    btw.. I didn't edit your post.. i keep replying inside peoples posts

  8. #58  
    JDMAlex's Avatar
    JDMAlex is online now & developer
    Join Date
    Nov 2010
    Posts
    742
    Downloads
    5
    Uploads
    1
    Mentioned
    9 Post(s)
    Tagged
    1 Thread(s)
    Likes Given
    204
    Likes Received
    467
    UPDATE:

    added offline trainer C++ source code with credits inside file
    HuN likes this.

  9. #59  
    HuN's Avatar
    HuN
    HuN is online now Moderator
    Join Date
    Feb 2012
    Posts
    473
    Downloads
    2
    Uploads
    0
    Mentioned
    28 Post(s)
    Tagged
    1 Thread(s)
    Likes Given
    473
    Likes Received
    417
    Quote Originally Posted by JDMAlex View Post
    UPDATE:

    added offline trainer C++ source code with credits inside file
    wow ! this is great , thanks alot for sharing .

  10. #60  
    JDMAlex's Avatar
    JDMAlex is online now & developer
    Join Date
    Nov 2010
    Posts
    742
    Downloads
    5
    Uploads
    1
    Mentioned
    9 Post(s)
    Tagged
    1 Thread(s)
    Likes Given
    204
    Likes Received
    467
    well I think there is a size limit on the script.img @arount 14.44mb cus at 14.45mb I get a loading loop... and when I used the same new code minus old code.. it works again..

    heres what I have been working on.. ped switching for main char (some models cause freezing like MODEL_SUPERLOD) ..
    NOTE: not sure if Wait(100) is needed.. and it seems that I have to press all 3 buttons to activate.. if you take out "if (IS_BUTTON_PRESSED(0,X)) " then its just 2 buttons.. what I was trying to do is let the user select what option and use "X" as the activator..

    Im still learing C++ (I am no way a coder yet)

    here's my code for ped switching.. needs to be in GeneralInput.c
    Code:
    boolean listnumber = 0;
    
    
    void PlayerchangeOpen(void)
    {
    if((IS_BUTTON_PRESSED(0,DPAD_LEFT)) && (IS_BUTTON_PRESSED(0,CIRCLE)) )
    	{
    	if (listnumber == 0) 
     	{
    		Print("NIKKO");
    		WAIT(100);
    		if (IS_BUTTON_PRESSED(0,X)) 
    		{
    			ChangePlayerModel(MODEL_PLAYER);
    		}
    		listnumber = 1;
     	}
    else if(listnumber == 1)
     	{
    		Print("Male MULTIPLAYER");
    		WAIT(100);
    		if (IS_BUTTON_PRESSED(0,X)) 
    		{
    			ChangePlayerModel(MODEL_M_Y_MULTIPLAYER);
    		}
    		listnumber = 2;
     	}
    else if(listnumber == 2)
     	{
    		Print("Female MULTIPLAYER");
    		WAIT(100);
    		if (IS_BUTTON_PRESSED(0,X)) 
    		{
    			ChangePlayerModel(MODEL_F_Y_MULTIPLAYER);
    		}
    		listnumber = 3;
    	}
    else if(listnumber == 3)
     	{
    		Print("GRACIE");
    		WAIT(100);
    		if (IS_BUTTON_PRESSED(0,X)) 
    		{
    		ChangePlayerModel(MODEL_IG_GRACIE);
    		}
    		listnumber = 0;
    	}
    	//}
    	//}
     	}
    	
    
    }

Page 6 of 12 FirstFirst ... 4 5 6 7 8 ... 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
  •