IMG

 
IMG
IMG   IMG
  Welcome to GTAForums! Be sure to check out the Grand Theft Auto V Forum.

You are not registered! (If you are, click here to login) Registering is fast, free and easy and allows you to instantly reply to any topic on GTAForums.
Why wait? Click here to register your own unique username and become part of the ever-growing community!


( Log In | Register | Revalidate Validation E-mail )
Quick Log-In:
  IMG
       
>
Forum Rules GTA Modification Forums

Please post mod releases in the Mod Showroom

GTAGarage.com
free mod hosting from GTANet, simply login with your GTAForums account details

GTAModding.com
GTANet's modding wiki

GTA Modding Chatroom
provided by irc.gtanet.com (Don't have an IRC client? Click here)


Pages: (2) 1 [2]   ( Go to first unread post ) Reply to this topicStart new topicStart Poll

 How do I edit the GTA-VC.exe?

 I want to change some in game attributes
 
JACK JONES  
Posted: Saturday, May 19 2012, 09:59
Quote Post


Booom!!!
Group Icon
Group: Members
Joined: Dec 6, 2011

sr.gif

XXXXX



Delete the old mod files from CLEO folder and create new text file in CLEO folder and put this in it:
CODE
{$CLEO .cs}
thread 'W'
0247: load_model #M4
0247: load_model #RUGER
0247: load_model #MP5LNG
038B: load_requested_models

:Load
wait 0
if and
0248:   model #M4 available
0248:   model #RUGER available
0248:   model #MP5LNG available
else_jump @Load

:GSB
wait 0
gosub @Army
gosub @FBI
gosub @SWAT
gosub @Vice
jump @GSB
05DC: end_custom_thread

:Army
wait 0
05E0: 0@ = read_memory 0x4ED842 size 1 virtual_protect 1
05E0: 1@ = read_memory 0x4ED84D size 1 virtual_protect 1
if or
0039:   0@ == 25 // integer values
0039:   1@ == 25 // integer values
else_jump @RArmy
05DF: write_memory 0x4ED842 size 1 value 26 virtual_protect 1
05DF: write_memory 0x4ED84D size 1 value 26 virtual_protect 1

:RArmy
return

:FBI
wait 0
05E0: 2@ = read_memory 0x4ED820 size 1 virtual_protect 1
05E0: 3@ = read_memory 0x4ED827 size 1 virtual_protect 1
if or
0039:   2@ == 25 // integer values
0039:   3@ == 25 // integer values
else_jump @RFBI
05DF: write_memory 0x4ED820 size 1 value 27 virtual_protect 1
05DF: write_memory 0x4ED827 size 1 value 27 virtual_protect 1

:RFBI
return

:SWAT
wait 0
05E0: 4@ = read_memory 0x4ED7D1 size 1 virtual_protect 1
05E0: 5@ = read_memory 0x4ED7DC size 1 virtual_protect 1
if or
0039:   4@ == 23 // integer values
0039:   5@ == 23 // integer values
else_jump @RSWAT
05DF: write_memory 0x4ED7D1 size 1 value 25 virtual_protect 1
05DF: write_memory 0x4ED7DC size 1 value 25 virtual_protect 1

:RSWAT
return

:Vice
wait 0
05E0: 6@ = read_memory 0x4ED8BC size 1 virtual_protect 1
05E0: 7@ = read_memory 0x4ED8C3 size 1 virtual_protect 1
if or
0039:   6@ == 23 // integer values
0039:   7@ == 23 // integer values
else_jump @RVice
05DF: write_memory 0x4ED8BC size 1 value 25 virtual_protect 1
05DF: write_memory 0x4ED8C3 size 1 value 25 virtual_protect 1

:RVice
return

Turn on Sanny Builder open this text and run compile. This time check all of the wanted guns I changed.
And I double checked - SWAT units are having the new MP5LNG weapons and the ARMY have M4 in my game.

This post has been edited by JACK JONES on Saturday, May 19 2012, 10:24
PM
  Top
 

 
Ashwin the new boy  
Posted: Saturday, May 19 2012, 10:09
Quote Post


I am The Most Confused Person
Group Icon
Group: Members
Joined: Nov 14, 2010

ia.gif

XXXXX



@JJ
No need to read & Check them
just Write the Value & i don't think they are VP
Users WebsitePM
  Top
 

 
JACK JONES  
Posted: Saturday, May 19 2012, 10:13
Quote Post


Booom!!!
Group Icon
Group: Members
Joined: Dec 6, 2011

sr.gif

XXXXX



QUOTE
i don't think they are VP

Yes they are because when I put VP 0 the game crashes.
QUOTE
No need to read & Check them

Are you saying that 05DF: writes values forever?

This post has been edited by JACK JONES on Saturday, May 19 2012, 10:15
PM
  Top
 

 
Ashwin the new boy  
Posted: Saturday, May 19 2012, 10:24
Quote Post


I am The Most Confused Person
Group Icon
Group: Members
Joined: Nov 14, 2010

ia.gif

XXXXX



QUOTE (JACK JONES @ Saturday, May 19 2012, 15:43)
Are you saying that 05DF: writes values forever?

I mean Why are you Reading & Checking if the Value of Mem Add is equal to Old Weapon IDE ?
as you already know it's Defiantly Old Weapon IDE
So, just Write the Value
It's Not gonna be Change Until you Quit & re Open the Game
-----------------
Anyway the Result will be Same
so Leave it colgate.gif
Users WebsitePM
  Top
 

 
Jsmith1980  
Posted: Saturday, May 19 2012, 11:11
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Feb 18, 2012

XXXXX



Okay, I copied all that data into a new text file. I used Sanny Builder and ran compile. I have the .cs file and text file in the CLEO folder within the Grand Theft Auto Vice City folder.

I rebooted just to be sure everything was okay. I have ran the game and started a new game.

I started a firefight with the law and the SWAT team and Vice cops are still armed with Uzis.

I think there must be something missing.


There is another CLEO script called Multisave in the CLEO folder, would that be involved somehow? Also I am using a No CD crack with the game, would that affect this?
PM
  Top
 

 
JACK JONES  
Posted: Saturday, May 19 2012, 11:30
Quote Post


Booom!!!
Group Icon
Group: Members
Joined: Dec 6, 2011

sr.gif

XXXXX



Try with my exe file:
http://www.mediafire.com/?lv1b8oej57ts6oo
Make backup of your vc.exe and put mine.

This post has been edited by JACK JONES on Saturday, May 19 2012, 11:46
PM
  Top
 

 
Jsmith1980  
Posted: Saturday, May 19 2012, 16:27
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Feb 18, 2012

XXXXX



That worked!!!!!! ITS ALIVE!!!!!!!!!!!!!!!!!!!!!

Thankyou for all you help Jack Jones, I very much appreciate it. icon14.gif

I will learn from your example script how to make more scripts for the game.

I cant understand how the exe file would have been different.

Thank you very much!
PM
  Top
 

 
JACK JONES  
Posted: Saturday, May 19 2012, 18:09
Quote Post


Booom!!!
Group Icon
Group: Members
Joined: Dec 6, 2011

sr.gif

XXXXX



Since you are a nooby I suggest you to read Mission Coding for Dummies by Dutchy:
http://www.gtaforums.com/index.php?showtopic=403790
That's a pretty good explaination of scm coding for beginers (I started with that). And I already gave you the link for CLEO scrypt tutorial by ZAZ.
Also the problem was version of the exe file (we have diferent versions).
QUOTE
I mean Why are you Reading & Checking if the Value of Mem Add is equal to Old Weapon IDE ?
as you already know it's Defiantly Old Weapon IDE
So, just Write the Value
It's Not gonna be Change Until you Quit & re Open the Game

@Ashwin I did that to avoid looping of 05DF. My code will only write new values into these addresses if they have original values - I wanted to be sure that everything works perfect.



This post has been edited by JACK JONES on Saturday, May 19 2012, 18:17
PM
  Top
 

 
Jsmith1980  
Posted: Sunday, May 20 2012, 08:54
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Feb 18, 2012

XXXXX



CODE
W_98
wait 0
05E0: 0@ = read_memory 5167170 size 1 virtual_protect 1
05E0: 1@ = read_memory 5167181 size 1 virtual_protect 1
if or
 0@ == 25 // integer values
 1@ == 25 // integer values
else_jump @W_181
05DF: write_memory 5167170 size 1 value 26 virtual_protect 1
05DF: write_memory 5167181 size 1 value 26 virtual_protect 1



I notice here that there are two entries for the same weapon for each of the law enforcement officers (SWAT, Army, Vice etc) Are they the primary and secondary weapon? If so, I think I could make things more interesting here.
PM
  Top
 

 
SilentPL  
Posted: Sunday, May 20 2012, 10:22
Quote Post


Senior File Manager
Group Icon
Group: Members
Joined: Feb 1, 2010

pl.gif

Member Award




Nope. They belong to the other things, but I can't recall what they do exactly (one probably loads the model according to weapon ID, another one gives weapon to copped).
Users WebsitePMMSNXbox Live
  Top
 

 
Jsmith1980  
Posted: Sunday, May 20 2012, 10:38
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Feb 18, 2012

XXXXX



Thanks silentpl

This is enough for now. I think I have changed almost all the weapons in all the missions and the pickups as it is.

PM
  Top
 

 

0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)

0 Members:

Pages: (2) 1 [2] 

Topic Options Reply to this topicStart new topicStart Poll
Search topic for posted by (exact match)



 
IMG IMG