Argonath RPG - A World of its own

GTA:IV => IV:MP - Liberty City Multiplayer => IV:MP General => Topic started by: Norrage on October 03, 2019, 08:28:05 pm

Title: IV:MP - Mapping Guide
Post by: Norrage on October 03, 2019, 08:28:05 pm
Hello everyone,

As you might have seen or heard, IV:MP does now allow mapping. It isn't an easy task tho, so thats why (after some requests) I decided to write a tutorial about how to map.

Note: You are required to start a server yourself. How to do this is described here (https://bitbucket.org/Suge/eflc-mp-lua/wiki/Configuration). The rest of this tutorial is solely focussed on mapping.
Note: The simple native trainer uses .asi files. Remove them from your IV folder to enter the Argonath server (Trainertbogt.asi).



Step 1. Download and install the Simple Native Trainer (https://www.gtainside.com/en/content.php?id=138) (OMG HAX!!)

Step 2. Start up your game and press F3 to use the trainer. Scroll to the tab 'Object Spawning' (use NUM 5 to enter)

Step 3. Spawn any object in any list where you want.

Step 4. If you want to move the object you just spawned, scroll to 'Move last spawned object' and use the NUM keys. If you are done use 'Enter' to return to the menu.

Step 5. Time to save. Scroll to "Save all spawned objects to objects.ini" by pressing NUM 5.

Step 6. Close your game and browse to your EFLC folder. Open up 'Objects.ini' with notepad (this file is in the main map).

Step 7. Don't freak out, it'll be easy. All you need to do convert this:
Code: [Select]
[1]
x=2578.6
y=400.313
z=4.80987
h=316.662
Model=-1324211035
qx=0
qy=0
qz=-0.369243
qw=0.929333
Dynamic=0

into this:

Code: [Select]
1097.85 -60.3322 36.0983 0 0 0.707176 0.707038 -285199156, 1, false, 0, 255
If you want to see what number in the table is what number in the line, check the following colors:

Quote
[1]
x=2578.6
y=400.313
z=4.80987
h=316.662
Model=-285199156
qx=0
qy=0
qz=-0.369243
qw=0.929333
Dynamic=0

2578.6 400.313 4.80987 0 0 -0.369243 0.929333 -285199156, 1, false, 0, 255

At the end of the line (1, false, 0, 255) are the same for every line.

Step 8. If you have more than one objects, you'll eventually get a line like this:
Quote
1097.85 -60.3322 36.0983 0 0 0.707176 0.707038 -285199156, 1, false, 0, 255
1107.15 -64.0291 36.0705 0 0 0.719272 0.694728 -285199156, 1, false, 0, 255
1100.29 -54.2351 35.1385 0 0 0.982131 0.1882 -1056252121, 1, false, 0, 255
1105.13 -89.6572 35.1285 0 0 -0.119231 0.992867 -1056252121, 1, false, 0, 255

Step 9. Time to add them to the server. Browse to your own custom server map and place these lines in the file 'main.lua'.
It is the best to place this below any scripts and categorise any objects. My main.lua shows the following:
Quote
loadScript("rcon")
loadScript("playerSpawn")
loadScript("carSpawning")
loadScript("weapons")
--Roundabout
createObject(1097.85, -60.3322, 36.0983, 0, 0, 0.707176, 0.707038, -285199156, 1, false, 0, 255)
createObject(1107.15, -64.0291, 36.0705, 0, 0, 0.719272, 0.694728, -285199156, 1, false, 0, 255)
createObject(1100.29, -54.2351, 35.1385, 0, 0, 0.982131, 0.1882, -1056252121, 1, false, 0, 255)
--Road
createObject(1097.85, -60.3322, 36.0983, 0, 0, 0.707176, 0.707038, -285199156, 1, false, 0, 255)

Step 10. Save, start your server and drive / fly / walk / swim to the object you placed.

Questions, ask them below. Best of luck, mappers!
Title: Re: IV:MP - Mapping Guide
Post by: Mac Taylor on October 03, 2019, 09:06:50 pm
A great guide, Twenty!
Thank you very much!

P.S Just a question that others may ask, will there be mappers applications or HQ will be up to receive maps made by players to review and decide whether to add or not?
Title: Re: IV:MP - Mapping Guide
Post by: jNewtonik on October 04, 2019, 06:08:51 am
Well done Twenty, very detailed guide I will try to play around with mapping, sounds like a funny think. Also Mac suggestion sounds
very nice idea to add.
Title: Re: IV:MP - Mapping Guide
Post by: Norrage on October 04, 2019, 09:29:03 pm
A great guide, Twenty!
Thank you very much!

P.S Just a question that others may ask, will there be mappers applications or HQ will be up to receive maps made by players to review and decide whether to add or not?

Probably the last, atleast for now.
Title: Re: IV:MP - Mapping Guide
Post by: badboy.dhia on January 01, 2020, 10:34:38 pm
Good one , thank you
SimplePortal 2.3.7 © 2008-2025, SimplePortal