Search found 1374 matches

by Sektor
21 Feb 2018, 13:06
Forum: Modding forum
Topic: Spawning Cars
Replies: 3
Views: 6496

Re: Spawning Cars

GTA2 loads the SCR file into memory, so you can edit that part of the memory and change the script commands while it's running. I would prefer a direct way of executing existing commands but I don't know how to do that yet. The SCR file is stored around here: GTA2.EXE+0x2744BC, offset 35C I tried si...
by Sektor
16 Feb 2018, 03:19
Forum: Modding forum
Topic: MISI
Replies: 90
Views: 92637

Re: MISI

When I first started reading this topic, I was hoping Logofero had figured out how to call the native GTA2 functions because I don’t know how to do that. Recreating existing code by writing memory isn’t very efficient.
by Sektor
15 Feb 2018, 11:34
Forum: Modding forum
Topic: GTA2Mispad. Just edit COUNTER bot_deaths - assertion failure
Replies: 7
Views: 7155

Re: GTA2Mispad. Just edit COUNTER bot_deaths - assertion fai

Can you compile the umodified mis file?

Can you post the modified one?
by Sektor
15 Feb 2018, 04:14
Forum: Modding forum
Topic: MISI
Replies: 90
Views: 92637

Re: MISI

Sektor, player is 0x5EB4FC + 0x1C? So what is the offset for x, y, z in this structure 4 bytes? I don't understand the question. Here's a LUA example for writing to the player coordinates. [syntax=lua] -- left mouse button teleports player to 44.5 , 103.125 , 2 , intended for Industrial function se...
by Sektor
14 Feb 2018, 09:44
Forum: Modding forum
Topic: MISI
Replies: 90
Views: 92637

Re: MISI

Yes sorry, I added the word camera to that part of the memory address topic now. for moving a ped: Pedsprite = peek dword [p1 + 168h] 360 anglepointer = peek dword [pedprite + 80h] 128 peek word [anglepointer] peek word [anglepointer] + 20 = x peek word [anglepointer] + 24 = y peek word [anglepointe...
by Sektor
13 Feb 2018, 05:20
Forum: Modding forum
Topic: MISI
Replies: 90
Views: 92637

Re: MISI

Yes I tested it and it worked but I didn't know Miles Sound System loaded all those files at startup, that's helpful.

Are most of the commands just for the player? I'm curious how it will handle all the other characters/peds in the future.
by Sektor
12 Feb 2018, 22:26
Forum: Modding forum
Topic: MISI
Replies: 90
Views: 92637

Re: MISI

Nice work. Now the hard part of adding every single GTA2 script command and more. It should still be useful with the limited commands.

How is misi.asi started? What is telling GTA2 to load that DLL on startup? How does it work?
by Sektor
11 Feb 2018, 14:04
Forum: Modding forum
Topic: GTA2 memory addresses
Replies: 115
Views: 178883

Re: GTA2 memory addresses

I don't know how to create objects, I can only move them around. Here are the stats shown at the end of the level: vehicles_hijacked: 0x5E3CC4, 0x50C; auto_damage_cost: 0x5E3CC4, 0x52C; civilians_run_down: 0x5E3CC4, 0x510; civilians_murdered: 0x5E3CC4, 0x514; lawmen_killed: 0x5E3CC4, 0x518; gang_mem...
by Sektor
20 Jan 2018, 01:05
Forum: GTA1/GTA2 chat
Topic: Just question of GTA2
Replies: 35
Views: 39685

Re: Just question of GTA2

Changing the colour/remap of existing cars is easy but I’ve never changed the model, transforming cars would be cool but probably difficult. A car can transform into a wreck, so changing into a different car type isn't that different but I've never tried it, there might be many memory addresses to c...
by Sektor
20 Jan 2018, 00:09
Forum: GTA1/GTA2 chat
Topic: Just question of GTA2
Replies: 35
Views: 39685

Re: Just question of GTA2

Thanks you for answer. It's really useful. So there are successful results spawn/creating new objects on all connected clients? Sector, what area of ​​memory is responsible for calling a new object? This can be useful for modmeykers except multiplayer. I don't know how to create without using scrip...
by Sektor
19 Jan 2018, 14:08
Forum: GTA1/GTA2 chat
Topic: Just question of GTA2
Replies: 35
Views: 39685

Re: Just question of GTA2

For my test map, I disabled all traffic and random peds and made all players and vehicles indestructible. Most of the racing maps don’t have peds or traffic anyway. Syncing every little thing would be a huge effort, so unlikely to ever happen but I still want to sync the basics and see if I can keep...
by Sektor
19 Jan 2018, 13:12
Forum: GTA1/GTA2 chat
Topic: Just question of GTA2
Replies: 35
Views: 39685

Re: Just question of GTA2

Interested in: How the game verifies that the player has responded to it, what sends in response when Connecting/Disconnecting, how many bytes, what keys are included, what the structure of data exchange between clients looks like. What addresses are used for the network game. None of that has been...
by Sektor
16 Jan 2018, 00:26
Forum: GTA1/GTA2 chat
Topic: Just question of GTA2
Replies: 35
Views: 39685

Re: Just question of GTA2

Yes it's worth compromising on sync and risking cheats if it means the game runs faster and we get more players. Hiding lag and making it easier to play (no fucking port forwarding) are my most wanted features. There are improvements that could be made without compromising sync like switching to a c...
by Sektor
15 Jan 2018, 23:50
Forum: GTA1/GTA2 chat
Topic: Just question of GTA2
Replies: 35
Views: 39685

Re: Just question of GTA2

TLDR; Other games hide their lag. GTA2 just sends the keys pressed and it has to wait for every key before it can move to the next frame or the game would go out of sync. Advantage, perfect sync, less data needs to be sent (sometimes) and it makes some types of cheats impossible. Other games often s...
by Sektor
30 Nov 2017, 11:09
Forum: Modding forum
Topic: Increase gang members health during mission
Replies: 10
Views: 13763

Re: Increase gang members health during mission

In GTA2 script, you'd do SET_CHAR_INVINCIBLE (minion,ON). In Cheat Engine, you have to read 5D28CC for Guard 1, add hex 208 and set that to 9999 decimal for untimed invulnerability. I updated the Cheat Engine table with invulnerability for the guards. Push i to make them invulnerable*. http://gtamp....
by Sektor
22 Nov 2017, 04:03
Forum: Modding forum
Topic: Increase gang members health during mission
Replies: 10
Views: 13763

Re: Increase gang members health during mission

No need to search since I already gave the pointers, you add them manually or even easier, just load this table: http://gtamp.com/GTA2/gta2ganghealth.ct

Image
by Sektor
22 Nov 2017, 00:12
Forum: Modding forum
Topic: Increase gang members health during mission
Replies: 10
Views: 13763

Re: Increase gang members health during mission

I found the guard ped addresses by writing a gta2 script that changes ped ID to ped address and then I used cheat engine to search that ped address and got some green values. Guard 1 5D28CC Guard 2 5D28D0 Guard 3 5D28D4 Guard 4 5D28D8 Guard 5 5D28DC Guard 6 5D28E0 Guard 7 5D28E4 Read 5D28CC, add 0x2...
by Sektor
16 Nov 2017, 00:07
Forum: Offtopic
Topic: Enough of the break [edit: so much irony going on here]
Replies: 24
Views: 45811

Re: Enough of the break [edit: so much irony going on here]

Looks good, wave modes can be really fun in some games. I love the Survival mode in GTA V online.

You can take away from player's money by doing ADD_SCORE (p1, -100)
by Sektor
04 Nov 2017, 11:52
Forum: GTA1/GTA2 chat
Topic: BEEFCAKE cheat not working
Replies: 4
Views: 5491

Re: BEEFCAKE cheat not working

All the cheats for the PC version are here: http://gtamp.com/gta2/gta2-cheats/

BEEFCAKE isn’t one of them. I think the closest would be BUCKFAST, it makes peds riot.
by Sektor
03 Nov 2017, 08:13
Forum: Modding forum
Topic: GTA2 Hackers Remix (SPLITSCREEN MOD!) in development
Replies: 98
Views: 159124

Re: GTA2 Hackers Remix (SPLITSCREEN MOD!) in development

At least the source code is available, so someone could continue it.