MISI

Anything to do with GTA1/GTA2 modding (tools, scripts and more).
User avatar
elypter
Immortal
Posts: 1120
Joined: 26 Dec 2009, 23:53
GH nick: elypter

Re: MISI

Post by elypter »

i have a suggestion that would drastically extend lua capabilities. i dont know how difficult this would be but if it was possible to inject script commands then many functions could be included at once. if used in combination with code from b$heps compiler you could even use the original syntax or something similar. unfortunately the compiler is not yet fully finished but maybe he can help you.
yur sa'nok ngeyä
User avatar
Sektor
Boss
Boss
Posts: 1423
Joined: 04 Mar 2008, 06:51
GH nick: Sektor
Location: GTAMP.com
Contact:

Re: MISI

Post by Sektor »

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.
Logofero
Serial Killer
Serial Killer
Posts: 264
Joined: 09 Dec 2015, 14:18
Location: Russia, Gelendzhik
Contact:

Re: MISI

Post by Logofero »

There is a difference in the use of MISI and Mispad.

Standard compiler creates new symbols (objects) MISI manages existing ones. If there are opcodes (procedures) for initializing all the game entities, then we do not need a standard compiler. If you are a fan of GBHScript syntax, you can easily write a wrapper to each function in LUA. MISI introduces the idea of ​​a fast language for which compilation and in-depth gaming knowledge is not required.

I did not set out to replace Mispad. I wanted to expand, make it easier to write scripts for GTA2 fans.
User avatar
elypter
Immortal
Posts: 1120
Joined: 26 Dec 2009, 23:53
GH nick: elypter

Re: MISI

Post by elypter »

i didnt suggest using code from the compiler because i like the original syntax but because nobody wants to deal with raw opcodes. a compilers job is essentially to allow using something more pretty. btw im not talking about mispad but about this project http://gtamp.com/forum/viewtopic.php?f=4&t=565
yur sa'nok ngeyä
Logofero
Serial Killer
Serial Killer
Posts: 264
Joined: 09 Dec 2015, 14:18
Location: Russia, Gelendzhik
Contact:

Re: MISI

Post by Logofero »

elypter wrote:i didnt suggest using code from the compiler because i like the original syntax but because nobody wants to deal with raw opcodes. a compilers job is essentially to allow using something more pretty. btw im not talking about mispad but about this project http://gtamp.com/forum/viewtopic.php?f=4&t=565
In MISI another course - is the dynamic management of game resources.

Maby i would add precompilation functions if the author had completed the compiler and laid out its sources in c/c++. But nothing more than creating a simple script form with a set of basic objects to manage them already through memory. This are all just reflections no more. That these are two different projects: the compiler and "engine" scripts.

Thanks for your suggestion.
Logofero
Serial Killer
Serial Killer
Posts: 264
Joined: 09 Dec 2015, 14:18
Location: Russia, Gelendzhik
Contact:

Re: MISI

Post by Logofero »

News of the project MISI.

Found many useful addresses. I refactored the code by rewriting all the basic MISI APIs. Fixed non-working, added new methods. On the 24th of the day release update v0.2b.
Coming soon.
Logofero
Serial Killer
Serial Killer
Posts: 264
Joined: 09 Dec 2015, 14:18
Location: Russia, Gelendzhik
Contact:

Re: MISI

Post by Logofero »

I am glad to inform you that the new version of MISI is already available for download.

v0.2b 24 feb 2018
MD5 34cb3cbb1167ed73b5278285803101e1 MISI.ASI
  • * All methods are rewritten.
    * Fixed bugs in methods.
    * Added new methods.
    * Improved stability.
    * Removed (from MISI.log) debugging information about the thread number.
    * Added info "Virtual key codes" in MISI/vk_codes.inc
    * Added info "Game key codes" in MISI/gk_codes.inc
    * The way of working with as an object (ped, player, car).
    * New system of structures. All method GET/SET "Player" rename to "Ped".
    * Added method GET ped struct of ID. Limit: 1 to 65535.
    * Now if the ReadProcessMemory fails to read the address, it returns 0 (and not nil as before).
Download link is available in the topic header http://gtamp.com/forum/viewtopic.php?f=4&t=1136#p10506
Logofero
Serial Killer
Serial Killer
Posts: 264
Joined: 09 Dec 2015, 14:18
Location: Russia, Gelendzhik
Contact:

Re: MISI

Post by Logofero »

Hi all.
I have a new update for you. This build number #1 of version 0.2. It includes useful methods of working with cars. So is the necessary method of installing money, which I was looking for and finally found.

v0.2.1b 26 feb 2018
MD5 c7f52fd728f676857b8fd87174409123 MISI.ASI
  • * Added method GET for "Player":
    GetPlayerMoney(player),
    * Added method SET for "Player":
    SetPlayerMoney(player, value).
    * Added method GET for "Car":
    GetCarModel(car),
    GetCarColor(car),
    GetCarEngine(car),
    GetCarDoorLock(car),
    GetCarEmergySiren(car),
    GetCarHorn(car).
    * Added method SET for "Car":
    SetCarModel(car, model),
    SetCarColor(car, color),
    SetCarEngine(car, state),
    SetCarDoorLock(car, state),
    SetCarEmergySiren(car, state),
    SetCarHorn(car, state).
Download link is available in the topic header http://gtamp.com/forum/viewtopic.php?f=4&t=1136#p10506
BeepBoop
Car Jacker
Car Jacker
Posts: 46
Joined: 14 Oct 2016, 01:32
GH nick: BeepBoop

Re: MISI

Post by BeepBoop »

Does the new update mean we can spawn cars while in game?
Logofero
Serial Killer
Serial Killer
Posts: 264
Joined: 09 Dec 2015, 14:18
Location: Russia, Gelendzhik
Contact:

Re: MISI

Post by Logofero »

BeepBoop wrote:Does the new update mean we can spawn cars while in game?
In the future, there may be a way to create new objects. Sector provided a useful address for this http://gtamp.com/forum/viewtopic.php?f=4&t=1124#p10549

Now it is possible to work only with a known structure.
Example scripts/cardoorlock.txt:

Code: Select all

-- Since: v0.2.1b
while(true) do
    local ped = GetPedStruct(1) -- Get player 1 structure 
    if (ped ~= 0) then -- Player 1 is exist
        local car = GetPedCar(ped) -- Get car struct (car player)
        if (car ~= 0) then -- Car is defined
            SetCarDoorLock(car, 1) -- Locked doors in car
        end
    end
    wait(200)
end
Logofero
Serial Killer
Serial Killer
Posts: 264
Joined: 09 Dec 2015, 14:18
Location: Russia, Gelendzhik
Contact:

Re: MISI

Post by Logofero »

The statistics (the number of downloads and positive responses) shows that people are not interested in the MISI project for which it will be completed after updating v0.2.2b.

I do not see any prospects for continuing to develop this project.

Thanks to all who left feedback and words of support.
Logofero
Serial Killer
Serial Killer
Posts: 264
Joined: 09 Dec 2015, 14:18
Location: Russia, Gelendzhik
Contact:

Re: MISI

Post by Logofero »

User avatar
elypter
Immortal
Posts: 1120
Joined: 26 Dec 2009, 23:53
GH nick: elypter

Re: MISI

Post by elypter »

very cool.
yur sa'nok ngeyä
User avatar
Sektor
Boss
Boss
Posts: 1423
Joined: 04 Mar 2008, 06:51
GH nick: Sektor
Location: GTAMP.com
Contact:

Re: MISI

Post by Sektor »

Nice, you figured out car spawn! I’m excited to test it and see how it works.
BeepBoop
Car Jacker
Car Jacker
Posts: 46
Joined: 14 Oct 2016, 01:32
GH nick: BeepBoop

Re: MISI

Post by BeepBoop »

Alright, glad you figured out car spawn. [gang]
Logofero
Serial Killer
Serial Killer
Posts: 264
Joined: 09 Dec 2015, 14:18
Location: Russia, Gelendzhik
Contact:

Re: MISI

Post by Logofero »

This will be included in the release on which I am currently working. There will be more edits and additions about which you will learn after the public version.

Thank you guys for all the feedback.

Coming soon.
Logofero
Serial Killer
Serial Killer
Posts: 264
Joined: 09 Dec 2015, 14:18
Location: Russia, Gelendzhik
Contact:

Re: MISI

Post by Logofero »

From the fields of development.

Found auto detect ground z. If you set 255 for z, the CREATE method looks for the earth coordinate (but not all CREATE_ interfaces look for ground z for example CREATE_LIGHT needs the exact z coordinate).

This is a very useful feature since you do not need to use two interfaces to create the same type of object.
Attachments
gta2 2018-03-09 15-14-48-70.jpg
gta2 2018-03-09 15-14-48-70.jpg (24.5 KiB) Viewed 39171 times
Logofero
Serial Killer
Serial Killer
Posts: 264
Joined: 09 Dec 2015, 14:18
Location: Russia, Gelendzhik
Contact:

Re: MISI

Post by Logofero »

User avatar
elypter
Immortal
Posts: 1120
Joined: 26 Dec 2009, 23:53
GH nick: elypter

Re: MISI

Post by elypter »

wow, flashlights. thats perfect for a zombie mode
yur sa'nok ngeyä
User avatar
T.M.
Immortal
Posts: 960
Joined: 29 Jan 2010, 15:00
Location: F21B3EED

Re: MISI

Post by T.M. »

Logofero wrote:From the fields of development.

Found auto detect ground z. If you set 255 for z, the CREATE method looks for the earth coordinate (but not all CREATE_ interfaces look for ground z for example CREATE_LIGHT needs the exact z coordinate).

This is a very useful feature since you do not need to use two interfaces to create the same type of object.
There are probably other methods that use 255 also, cannot remember myself anymore, but in the Decompiler i wrote has those in use. Maybe you can learn other useful stuff from the decompiler sources too.
Post Reply