GTA: Modification Area
Would you like to react to this message? Create an account in a few clicks or log in to continue.
GTA: Modification Area

A website for the GTA modding scene

Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» Big-game starts raising Schneider's profile
[help] storing weapons EmptySun Mar 04, 2012 2:28 am by lavivi

» [Help] cleo created lighting
[help] storing weapons EmptyThu Oct 14, 2010 1:03 am by findmy012

» Mission Question
[help] storing weapons EmptyThu Oct 14, 2010 1:02 am by findmy012

» [IV] Spoiler Script
[help] storing weapons EmptyThu Oct 14, 2010 1:02 am by findmy012

» Mission mod [help]
[help] storing weapons EmptySat Sep 18, 2010 5:50 pm by jayd00

» Bc7 Mod Help
[help] storing weapons EmptyFri Aug 20, 2010 11:19 am by pengpeng

» Found a bug
[help] storing weapons EmptyFri Dec 18, 2009 4:22 am by _CJ360_

» [IV] Novitec Rosso 599 GTB
[help] storing weapons EmptyTue Nov 17, 2009 4:22 pm by Kotton

» Hello/Guidance Request
[help] storing weapons EmptyMon Oct 12, 2009 6:45 am by Adler

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search
Affiliates
image

Image

Image

Image

Image

Image

Image

Image

Image

Image

image

Image

steve-m.com

Image


----- Русский -----

Если ваш сайт содержит большую коллекцию SCM/CLEO-скриптов (больше 16), напишите на мой e-mail, и я добавлю его в список. Приветствуются скрипты, которые не встречаются на других сайтах ... Спасибо. ))))


----- English -----

If your website has a big enough collection of SCM/CLEO scripts (more than 16) notify me by e-mail
, and I will add it to the list. The unique scripts are preferable ... Thank you. ))))
Log in

I forgot my password



March 2024
MonTueWedThuFriSatSun
    123
45678910
11121314151617
18192021222324
25262728293031

Calendar Calendar


You are not connected. Please login or register

[help] storing weapons

3 posters

Go down  Message [Page 1 of 1]

1[help] storing weapons Empty [help] storing weapons Mon Apr 27, 2009 5:09 am

_CJ360_

_CJ360_

Hi I was recently playing GTA VCS and though its basicly another vice city with some changes it has some features I wanna add to SA. For example a handy thing is when you die or get arrested it stores your weapons and for some money returns them. But I am not sure how to store the weapons. ty

2[help] storing weapons Empty Re: [help] storing weapons Mon Apr 27, 2009 7:02 am

gtasbigfoot

gtasbigfoot
Admin

There is a opcode that exist for keeping stuff after the player has been wasted or busted,(opcode 08dd). Do not know if it's what your looking for, - I, myself, have never played GTA: VCS. To get specific weapon data from the player you can use 04b8. Use Sanny Builder's Opcode Search Tool, to see if there is any opcode that may help you Grin Smile.

http://gtamodding.com

3[help] storing weapons Empty Re: [help] storing weapons Mon Apr 27, 2009 7:12 am

_CJ360_

_CJ360_

Thx will do also how does the game know which police station or hospital to respawn?

4[help] storing weapons Empty Re: [help] storing weapons Mon Apr 27, 2009 8:10 am

gtasbigfoot

gtasbigfoot
Admin

How does it know where to spawn CJ? In the main.scm there exist opcodes to check. The game engine checks what city the
player is in, and then finds the nearest hospital/police station from where the player has died, opcode 016c controls the spawn places co-ordinates. What controls the actual wasted/busted setup checks is actually checked by the EXE(gtasa.exe).


Code:

016c: restart_if_wasted_at xyz angle <a> town_number 0, 1, or 2


The gtasa.exe can be opened with a hexadecimal editor, and you can look at opcodes codes using IDA Pro which is a dissembler and debugger, though, unfortunately, - it's not free.

http://gtamodding.com

5[help] storing weapons Empty Re: [help] storing weapons Tue Apr 28, 2009 4:01 am

_CJ360_

_CJ360_

hmm this is more advanced than I thought lol u know of any thing thats been done similar to this?

6[help] storing weapons Empty Re: [help] storing weapons Tue Apr 28, 2009 4:29 am

gtasbigfoot

gtasbigfoot
Admin

Привет Grin Smile. Hacking the EXE? Yes, I have done some EXE hacking via HEX editor, others like Seemann, Alexander Blade, and etc, also have. I'm not quite sure, what your target is, - I never played VCS.

Though, if this feature of VCS is controlled by the EXE(weapon-thing), this means the setup when being wasted/busted is completely different from that of SA's one. I have never even looked at the EXE file of VCS, before, I do not have the game, to-do so.

It would help, if I had the game to see how the wasted/busted setup works in VCS, but unfortunately, - I do not have it. (May be I'll buy it next time I see it in a game store.)

If you mean doing the wasted/busted setup exactly the same as VCS one, then, sorry, I'm afraid I do not know of any project, that have done this, even on Russian or German forums, ... I have ever seen any project like that.

Пока.

http://gtamodding.com

7[help] storing weapons Empty Re: [help] storing weapons Sat May 02, 2009 4:46 am

_CJ360_

_CJ360_

well I don't mean exactly I meant a cleo that if arrested it stores your current weapons and places an icon in front of the police station (yes I see that there's a ton of cords involved)and for a price gives you your weapons back. It would probly be faster just to do it for one town but I'm not sure how to store the weapons in the first place, or how to use the opcodes you said. wow thats realy long why can't I write like this on the ELA tests lol

8[help] storing weapons Empty Re: [help] storing weapons Sat May 02, 2009 10:59 am

gtasbigfoot

gtasbigfoot
Admin

Storing ALL weapons 'as-in' like you can with a vehicle? No exact opcode in SA exists to do this. But has been said - you can get weapon data from the player... could think of a way to possibly to do it - via script, but I think the result will not be as good as it should be. The problem is when the player is holding a weapon -- that is so easy to store, but if he has any other weapons there usually not "active" -- until the player is holding them (as in functionality).

Sure, its possible, but I think R* did it by EXE for a reason (IMO, its not trustworthy of doing it via script). BTW, you can use "57" for any weapon. For example check if player is hit by any weapon you could use:


Code:
 
if
  031D:  actor $PLAYER_ACTOR hit_by_weapon 57  // 57 by any weapon
then
    //.........
end




Code:
 
57(0x39) - any weapon
49(0x31) - any car


I know that will not help much, but I just thought I would bring it up, if it helps you with something else...



wow thats realy long why can't I write like this on the ELA tests lol

Long? If your speaking about the EXE, yes it's damn long. Wink If your speaking about the Russian words, then, yea, you're right, there long. Randomly I speak Russian even if the user is not Russian. The alphabet has 33 letters, and is known as the Cyrillic modified alphabet. Some words for you to comprehend:


Code:
 
Спасибо = Thanks
До свидания = Good bye
Пока = Bye
Привет = Hi
Добро пожаловать! = Welcome!
Да = Yes
Нет = No



Russian Alphabet:


Code:
 
А, Б, В, Г, Д, Е, Ё, Ж, З, И, Й, К, Л, М, Н, О, П, Р, С, Т, У, Ф, Х, Ц, Ч, Ш, Щ, Ъ, Ы, Ь, Э, Ю, Я


Hope this helps! Grin Smile Now you can speak some Russian to the GTAForums members. Wink

When saying the word "Thank you" (Cyrillic: Спасибо Latin: spasiba) in Russian to someone its pronounced "spa-see-ba", where as in German "thanks" is spelled "Danke" in Japanese(日本語) its "ありがとう". In Greek I'm sure "thanks" would be: "Ευχαριστώ". Even though I am not here to teach you languages - if you have any question, then feel free to ask Grin Smile.



Last edited by gtasbigfoot on Wed Aug 05, 2009 2:20 am; edited 3 times in total

http://gtamodding.com

9[help] storing weapons Empty Re: [help] storing weapons Sat May 02, 2009 11:10 am

_CJ360_

_CJ360_

I didn't know this was a language class lol thx but yea I see what you mean. Oh I found a work around you know how some girlfriends in SA can keep your weapons when your die? I'll use that opcode with a save disc well no that'd look weird in-game do you know how to add new objects? Cuz I wanna add another instead of the ones in sa. спасибо Wink

10[help] storing weapons Empty Re: [help] storing weapons Sat May 02, 2009 12:01 pm

gtasbigfoot

gtasbigfoot
Admin

Simply put the object you want into the gta3.img file, and then use MEd for the rest, objects in-game are of course placed by IPL files. Be careful though, SA has a very strict limit for objects. (It's not very hard at all to place your own objects in game.) If you was asking how to make your own model then the answer is 3D's Max, Gmax, or Zmodeler, I am sure you already know that though.


спасибо

Вы очень добро пожаловать! Grin Smile



I didn't know this was a language class lol

Hehe... Grin Smile

___________

P.S. You can also load a IPL file via script:


Code:

0A9F: 0@ = current_thread_pointer
0@ += 0x10
0A8D: 0@ = read_memory 0@ size 4 virtual_protect 0
0@ -= @IPL

0AA5: call 0x5B8700 num_params 1 pop 1 0@

:IPL
hex
  "data\maps\vegas\test.ipl" 00
end


Also garages can be created via script, using 0x005B4530.


Code:

//......
0AA5: call 0x5B4530 num_params 1 pop 1 0@


As discussed in the SA Memory Example Topic.


http://gtamodding.com

11[help] storing weapons Empty Re: [help] storing weapons Sat May 02, 2009 12:16 pm

Alex



You're too smart.

Wink I'm starting to think you know everything. Good

12[help] storing weapons Empty Re: [help] storing weapons Mon May 11, 2009 2:18 am

_CJ360_

_CJ360_

Alex I'm starting to agree with u and I backup'd the game to an iso on my pc so I might be able to send the files like a main.scm if it has one...
Edit- it does but I can't decomplie it and the help says its impossible to decomplie..

13[help] storing weapons Empty Re: [help] storing weapons Mon May 11, 2009 8:54 am

gtasbigfoot

gtasbigfoot
Admin



@Alexander

Спасибо! у тебя есть Visual Studio С++? Могу найти ссылку на него. Grin Smile
http://www.microsoft.com/express/vc/



@cj360

Thank you. Grin Smile I do not know the reason. But Vice City Stories main.scm you should be able to decompile, but compiling is not supported, yet: http://www.gtaforums.com/index.php?showtopic=211077 , have you clicked on the bottom of Sanny Builder the Vice City Stories icon? Or it is still on San Andreas?

Screen:

[help] storing weapons 000qlg.th

http://gtamodding.com

Sponsored content



Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum