Page 4 of 5

Re: MISI

Posted: 25 Mar 2018, 23:34
by Sektor
I tried a clean install of v11.44 and no longer get the gta2manager error. My normal GTA2 folder has thousands of files and is a huge mess. The exe versions are the same but I had a different version of mss32.dll that I forgot I installed.

I tried copying MISI.ASI into my gta2clean folder. I put STAGEC.SCR in data and building.lua in scripts but seems I'm still missing files. I get this error:

ERROR in LUA script: C:/games/gta2clean/scripts/building.lua:6: attempt to index a nil value (global 'package')

Where does the MISI installer get the gta2 folder from? It keeps installing to gta2 instead of gta2clean. I worked around it by renaming the folders and now my clean GTA2 starts fast with building.txt loaded. I'll try and figure out what slows the loading down in my other GTA2 folder with hundreds of maps.

Re: MISI

Posted: 26 Mar 2018, 00:32
by Logofero
When installing misi_setup.exe, you must select a new folder. A folder in the folder may have been installed.

The scripts folder should be in the same directory as gta2.exe and MISI.ASI. Also there should be a folder of modules

It looks like this:
GAMEROOT/gta2.exe
GAMEROOT/MISI.ASI
GAMEROOT/MISI.log
GAMEROOT/modules/STAGEC.LUA
GAMEROOT/scripts/buildings.txt
GAMEROOT/scripts/blank.lua
GAMEROOT/scripts/blank.txt
GAMEROOT/data/STAGEC.SCR
GAMEROOT/data/test1.seq

Also to better understand the reason for the error, attach the MISI.log.

Re: MISI

Posted: 26 Mar 2018, 00:42
by Logofero
It seems I guess what the reason is. Error: "no package". I assume that you have an old version of MISI. The "Package" interface has been included since version 0.3.1b

Solution: Download MISI v0.3.1b and reinstall.

Error 1114 on Windows 10 is solved by turning on the power supply to "Maximum Performance". I have not encountered this problem since I have Windows 7, but on the Internet there is a description of this error and its solutions.

Sector, thanks for the bug reports. It's good that you sorted it out with the GTA2 manager. Apparently, it was perceived by MISI as a neglected game. But at the same time it was clearly written in the log that the version is not supported, which means that MISI was automatically unloaded at the start of the game - this protection. If the game offset is not known then the record in memory will be incorrect.

Re: MISI

Posted: 26 Mar 2018, 01:08
by Logofero
Car passenger
MISI MOD for GTA2

Author: DenLover
Date: 30 mar 2018
Mod version: v0.2
MISI since version: v0.3.2b

Description:
  • Mod allows player to sit on a passenger seat in a car is down key "G".
Bugs:
  • If you are trying to throw out of the car when you are in the passenger seat of the game crashes.
Installation:
  • * You must have the MISI library installed. You can download it at http://gtamp.com/forum/viewtopic.php?f=4&t=1136#p10506
    ** To work, the mod must be loaded with STAGEC.SCR and require module STAGEC.LUA

    1. Download the archive with the mod.
    2. Extract the script carpassenger.lua to the GTA2/scripts directory.
    3. All. You can run the game and check.
    Enjoy!
Download

Re: MISI

Posted: 26 Mar 2018, 02:40
by Sektor
When releasing LUA scripts, I think it would be good to say if it takes over the SCR. Some people might only want to use scripts that don’t disable the missions.

Ideally we still need to figure out how to spawn things without replacing the entire SCR but I know that will be difficult to do without crashing.

Re: MISI

Posted: 26 Mar 2018, 11:40
by Logofero
Sektor wrote:When releasing LUA scripts, I think it would be good to say if it takes over the SCR. Some people might only want to use scripts that don’t disable the missions.

Ideally we still need to figure out how to spawn things without replacing the entire SCR but I know that will be difficult to do without crashing.
Yes, possible. True, the person who picks up the mod should understand at least some of the options of MISI, otherwise it will not start anything. And when you "fly" out, most likely he will not have the desire to use this library. MISI for bright fans and experimenters.

At the expense of missions controversial. To create new conditions (logic), it is better to use new opportunities. Mission can be rewritten to LUA. Of course it's better to do it with a stable version then it will make sense. But I do not guarantee its release.

Re: MISI

Posted: 29 Mar 2018, 13:51
by Logofero

Re: MISI

Posted: 29 Mar 2018, 18:42
by BeepBoop
Nice. what other addresses do you need or want still?

Re: MISI

Posted: 29 Mar 2018, 19:04
by Logofero
BeepBoop wrote:Nice. what other addresses do you need or want still?
The main work on the MISI project is completed. Then there will be only fixes.

If you have a desire to share the addresses, you can post them in this thread http://gtamp.com/forum/viewtopic.php?f=4&t=700#p8337

I'm sure there will be people who will be grateful to you.

Re: MISI

Posted: 30 Mar 2018, 20:58
by Logofero
v0.3.2b 26 mar 2018
No public version
  • * Minor changes in the script loader
    * Minor changes in READMEEN.TXT and READMERU.TXT
    * Added description of methods to documentation:
    GetPedCurrentCarDoorID(ped)
    GetPedFromPoint(x, y, z, range)
    SetPedCurrentCarDoorID(ped, doorid)
    DeletePedSprite(ped)
    GetCarFromPoint(x, y, z, range)
v0.3.3b 30 mar 2018
MD5 7f1844637131252def3e8cb70166aba2 MISI.ASI
  • * Minor changes in the script loader. Added delay (100 ms) before downloading the script thread
    * Added text Contributers in READMEEN.TXT and READMERU.TXT
    * Added occupation type in Docs/ped.inc
    * Fixed example buldings.txt
    * All methods in the modules are placed in classes (LUA tables)
    * Changed license ELUA to Public Domain
    * Source codes are open
Download link is available in the topic header http://gtamp.com/forum/viewtopic.php?f=4&t=1136#p10506

Re: MISI

Posted: 31 Mar 2018, 12:37
by Logofero
Walk mode
MISI MOD for GTA2

Author: DenLover
Date: 30 mar 2018
Mod version: v0.2
MISI since version: v0.2.1b

Description:
  • Press key "CTRL" for walking.
Installation:
  • * You must have the MISI library installed. You can download it at http://gtamp.com/forum/viewtopic.php?f=4&t=1136#p10506

    1. Download the archive with the mod.
    2. Extract the script walkmode.lua to the GTA2/scripts directory.
    3. All. You can run the game and check.
    Enjoy!
Download

Re: MISI

Posted: 01 Apr 2018, 06:27
by Logofero
Ambient level
MISI MOD for GTA2

Author: DenLover
Date: 30 mar 2018
Mod version: v0.1
MISI since version: v0.3.3b

Description:
  • Press key "9" for increment or key "0" decrement of light.
Installation:
  • * You must have the MISI library installed. You can download it at http://gtamp.com/forum/viewtopic.php?f=4&t=1136#p10506
    ** To work, the mod must be loaded with STAGEC.SCR and require module STAGEC.LUA

    1. Download the archive with the mod.
    2. Extract the script ambientlevel.lua to the GTA2/scripts directory.
    3. All. You can run the game and check.
    Enjoy!
Download

Alternative Control Scheme

Posted: 05 Apr 2018, 07:45
by Dege
Alternative Control Scheme
MISI MOD for GTA2

Author: Dege
Date: 04 apr 2018
Mod version: v0.3
MISI since version: v0.3.3b

Description:
  • Mod allows player to control the walking character directly with the arrows, like in Hotline Miami (only for the walking part, not for the shooting).
    The controls while driving works normally.
Limitations:
  • The standard controls are hardcoded inside the script: if you use different ones you must redeclare them inside the script.
    I've not tested it in multiplayer at all, so this script will probably desync it.
Installation:
  • * You must have the MISI library installed. You can download it at http://gtamp.com/forum/viewtopic.php?f=4&t=1136#p10506

    1. Download the archive with the mod.
    2. Extract the script alternative_controls.lua to the GTA2/scripts directory.
    3. You can run the game and check.
    Enjoy!
Download

Re: MISI

Posted: 08 Apr 2018, 12:48
by Logofero
For more flexible control settings there is a method IsGameKeyPress(player, keycode) description of the key can be found in the doc file MISI/Docs/input.inc

Re: MISI

Posted: 09 Apr 2018, 19:25
by Logofero
Warning: "Car passenger" and "Walk mode" mods are already included in gamemode.txt which is included in the v0.4.1 build. All docks, examples and modules (links from the main topic header) are already included in the installer misi_setup.7z, you can install them by selecting (selecting the check boxes) the components you need.

v0.4.1 9 apr 2018
MD5 817cbba67a2eb2bfa4cfd0c3cccae3aa MISI.ASI
  • * Improved stability. lua_newthread() is replaced by luaL_newstate(). The main lua state was removed.
    Assynchronous creation of new lua thread from the main state, caused frequent errors due to which at
    the start the scripts flied. Now every script is a new lua state.
    It is recommended not to forget to add wait(ms) to the body of the loop of your script to avoid friezes in the game.
    * Fixed (in module STAGEC.LUA) method Create_ added math.floor
    * Fixed methods: GetArrowPos(arrow), SetArrowPos(arrow, x, y, z)
    Before this method worked only with variables from GetPedPos(ped), GetPosCar(car) and it was not possible to create an object in the specified coordinates
    * Fixed (in module STAGEC.LUA) algorithm for tileid in methods: SetBlockSide and SetBlockLID
    Added calculation of the tile sheet (1 page = 256 tiles) until this maximum tile's id could be 255
    * Removed method GetPedSprite(ped)
    Removed because of small benefit. You can still get the structure of the sprite through ReadProcessMemory(address, size)
    * Added method for "Ped" IsPedDefined(ped)
    The method will check if a ped is created
    * Changed method GetPlayerStruct(ped) to GetPedPlayer(ped)
    The method still returns the structure of the player from the ped. Do not forget to rename this method in your scripts!
    * All MISI methods are now protected from the null structure and the nil value from the LUA.
    If these values ​​were passed to the method, it is not executed and returns false. Note: the return value
    depends on the method, somewhere it is 0, 65535, false, or nil. What exactly are the values ​​returned by the methods read in
    documentation DOCEN.TXT and DOCRU.TXT
    * The description of checked objects is added to the obj.inc
    * Added method in module obj.lua obj.IsValidModel (model)
    The method will check (on the array) the validation model or not
    Checking sifts models that paint the game and that are not visible when you create
    * Changed the speed in the methods GetPedSpeed(ped), GetPedMaxSpeed(ped), SetPedSpeed​​(ped, speed), SetPedMaxSpeed(ped, speed)
    Now the value has a floating point type (divisible/multiplied by 256): 0.8 - slow step (pedestrian), 2.0 - fast step (player), 4.0 - Run (player)
    * Changed the speed in the methods SetCarDirection(car, x, y), GetCarDirection(car), GetCarSpeed(car)
    Now the value has a floating-point type (divisible/multiplied by 16384)
    * Updated all modules
    * Updated STAGEC.SCR (STAGEC.MIS)
    * Added file STAGEC.MMP
Download link is available in the topic header http://gtamp.com/forum/viewtopic.php?f=4&t=1136#p10506

Re: MISI

Posted: 10 Apr 2018, 11:42
by Logofero

Re: MISI

Posted: 10 Apr 2018, 15:41
by elypter
thats cool. i always wanted to be able to have dead players drop the weapon they used the last time.

Re: MISI

Posted: 13 Apr 2018, 19:20
by Logofero
Dege, you will be added to the list of contributors to the next build. Thank for your contribution.
elypter wrote:thats cool. i always wanted to be able to have dead players drop the weapon they used the last time.
This is indeed so. I also love "Weapon Drop" in games. It gives the game a tactical element.

Re: MISI

Posted: 19 Apr 2018, 16:04
by Logofero

Re: MISI

Posted: 25 Apr 2018, 18:32
by Logofero
MH Trainer
MISI MOD for GTA2

Author: DenLover
Update: 28 apr 2018
Mod version: v0.2
MISI since version: v0.4.1

Description:
  • Money Hack Trainer. Down key "M" for take 10000$
Installation:
  • * You must have the MISI library installed. You can download it at http://gtamp.com/forum/viewtopic.php?f=4&t=1136#p10506

    1. Download the archive with the mod.
    2. Extract the script mh_trainer.lua to the GTA2/scripts directory.
    3. All. You can run the game and check.
    Enjoy!
Download