Author Topic: Fonline 2 Mapper  (Read 41092 times)

skycast

  • Administrator
  • Hero Member
  • *****
  • Posts: 4310
  • Retired
    • View Profile
Fonline 2 Mapper
« on: November 18, 2013, 13:27 »
Mapper download link

Installation:
    Just open up Mapper.cfg inside main mapper folder.

    Find this.

    # Path to client folder
    ClientPath = .\

    Replace Clientpath with path to client folder. For example: D:\Games\Fonline2

    # Path to client folder
    ClientPath = D:\Games\Fonline2

Update client


Place here you will find new sceneries etc.


Proper wall graphics which should be used. (walls_new)



small manual
To load a saved map, type "~<map name>" in the console.
TO save a map, type "^<map name> [/text] [/nopack]". "/text" to save it in text format, "/nopack" to save it in unpacked version.

Other commands, preceded with "*":
 new      create a new map;
 unload      unload the current map;
 scripts   list of scripts;
 size <w> <h>   set a new map size;
 dupl      search for items with the same pids, placed on the same hexes;
 scroll      search for scroll blockes, around which there are less than two other scroll blockers;
 pidpos <pid>   search for all items with a given pid;
 hex <hx> <hy>   search for all objects on a given hex.

To run a script function, use "#". Executed function must be of prototype "string FuncName(string)", string argument is passed from a console, and function results will be displayed in the message box. Default module is "main", to execute a function from another module use "@" (for example, "#module@MyFunc").
Example:
In console, "#MyFunc Hello wo";
In script, "string MyFunc(string my) { return my + "rld!"; }";
Result in the message box: "Result: Hello world!".

Scripts are placed in the "/data" directory. List of loaded scripts is in scripts.cfg. The main script is mapper_main.fos, which contains all reserved functions, and basic list of API functions.

The mapper does not support FO and FO2 map formats, as well as older FOnline map formats.

On the main panel, there is a range of buttons that group the objects by their type.
Below these buttons, there's a panel with buttons toggling the display of items in the map view.
On the right, there are buttons that determine which objects will be selected by clicking and dragging the mouse.
Other buttons:
Fast - displays list of often used items;
Ign - Ignore, shows ignored objects that are not rendered on the map;
Inv - Inventory, shows objects inside a container or inside critters' inventory;
Lst - List, shows all loaded maps and allows to switch between them.

Upon selecting an object, an option window will appear allowing to edit some of it's properties (marked green; white are not editable).
To add an object to Ignored objects list, click it with Ctrl on the object selection panel.
To add an object to the container or inventory, click it with Alt on the object selection panel.
To put an object in a critter's slot, click the item in it's inventory with Shift.

To apply a change in the object properties window to a range of selected objects (of the same type), click To All button.

To remove selected object(s), press Del.

To change direction of a critter, use middle mouse button.

To add a range of objects to already selected objects, hold Ctrl.

To change zoom, use mouse wheel.

To speed up scrolling of objects in the panel, use the following:
Shift - one page,
Ctrl - 100 elements,
Alt - 1000 elements.

To play animation of a selected critter, use "@" command with codes of desired animations. For instance, to play animations of movement, and then using, type "@abal" (case is ignored, as well as whitespaces). If no critter is selected, all critters on the map will play the animation. For information on animation codes, see http://modguide.nma-fallout.com/#Graphics011

To move a critter, hold down Shift and click the desired position.

Hotkeys:
F1: Enable/Disable display of items.
F2: Enable/Disable display of sceneries.
F3: Enable/Disable display of walls.
F4: Enable/Disable display of critter.
F5: Enable/Disable display of tiles.
F6: Enable/Disable display of frequently used objects.
F7: Hide/Show the main panel.
Shift + F7: Fix the position of the main panel (enabled by default).
F8: Enable/Disable scrolling with mouse.
F9: Hide/Show the object properties window.
Shift + F9: Fix the position of the object properties window (disabled by default).
F11: Set rain.
Shift + Escape: Exit the mapper.
Del: Delete the selected objects.
Ctrl + X: Cut objects.
Ctrl + C: Copy objects.
Ctrl + V: Paste objects.
Ctrl + A: Select all.
Ctrl + S: Enable/Disable ignoring of scroll blockers.
Ctrl + B: Show impassable hexes. Red are impassable, and not shootable through. Green are impassable, shootable through.
Ctrl + M: Display NPC information over their heads (this has few modes of display).
Ctrl + L: Save the log to a txt file.
Tab: Change the type of objects selection (diamond or rectangle).
+: Change time by 1 hour.
-: Change time by -1 hour.

Special Entires:
0 - default;
240 - starting position for a player who logged for a first time;
241 - starting position for players on a map with NoLogOff flag.
242 - replication.
243 - car entry point.
245 - vertibird entry point.
246 - boat entry point.

So if someone will provide good maps, we for sure will implement them fast and reward autor ;)
« Last Edit: January 08, 2018, 16:45 by Brightside »
   

   

Trickster

  • Hero Member
  • *****
  • Posts: 1129
    • View Profile
Re: Fonline 2 Mapper
« Reply #1 on: November 18, 2013, 14:10 »
Cool! I remember playing with original mapper 10 years ago or so.

Did much changed since that version? Is there any resource to get the know-how?

skycast

  • Administrator
  • Hero Member
  • *****
  • Posts: 4310
  • Retired
    • View Profile
Re: Fonline 2 Mapper
« Reply #2 on: November 18, 2013, 14:12 »
Cool! I remember playing with original mapper 10 years ago or so.

Did much changed since that version? Is there any resource to get the know-how?
There is help pdf file inside mapper folder with some basics.
Also there is topic with some help http://forum.fonline2.com/index.php?topic=2423.0
   

   

zuhardu

  • Sr. Member
  • ****
  • Posts: 359
    • View Profile
Re: Fonline 2 Mapper
« Reply #3 on: November 18, 2013, 15:13 »
Cool!

I have a busy schedule at work and a lot of deadlines so I can't play with it at the moment. But, in the future, I will learn to work with this little bastard and hopefully provide some maps for you guys.

vaultloner94

  • Hero Member
  • *****
  • Posts: 533
  • War, War never changes
    • View Profile
Re: Fonline 2 Mapper
« Reply #4 on: November 18, 2013, 15:33 »
May i ask why can't we put into a complied file like 2388 did here:http://fo2238.fodev.net/source/ .
I'll try it out once i try to get it to work. Still waiting for dialouge editor but this is good news too.
So excited!!!!!!!! ;D
Spoiler

Realism

  • Jr. Member
  • **
  • Posts: 71
    • View Profile
Re: Fonline 2 Mapper
« Reply #5 on: November 19, 2013, 01:49 »
if someone will provide good maps
You should probably start from existing ones, just in case you don't know exactly what maps do you need... if any.

vaultloner94

  • Hero Member
  • *****
  • Posts: 533
  • War, War never changes
    • View Profile
Re: Fonline 2 Mapper
« Reply #6 on: November 19, 2013, 19:33 »
The command "!" and <<!>> does not work when I try to create a map.
Spoiler

skycast

  • Administrator
  • Hero Member
  • *****
  • Posts: 4310
  • Retired
    • View Profile
Re: Fonline 2 Mapper
« Reply #7 on: November 19, 2013, 19:51 »
The command "!" and <<!>> does not work when I try to create a map.
Hmm, looks like sdk mapper help is outdated, command for new map in *new
I add some 2238 manual under spoiler.
   

   

vaultloner94

  • Hero Member
  • *****
  • Posts: 533
  • War, War never changes
    • View Profile
Re: Fonline 2 Mapper
« Reply #8 on: November 19, 2013, 20:05 »
Thank you it works now. ;D
p.s You need to change this on the english pdf. The polish version say *new .
« Last Edit: November 20, 2013, 15:12 by vaultloner94 »
Spoiler

Trickster

  • Hero Member
  • *****
  • Posts: 1129
    • View Profile
Re: Fonline 2 Mapper
« Reply #9 on: November 20, 2013, 20:09 »
1.
is there any way to bookmark particular items? I have an idea of dark, grim alleyway in Boneyard area. I already found where are the scenery objects I'd like to use but it's so timeconsuming to scroll between them. Several are in the beggining of "generic" group while other are in the middle. I know about ALT and CTRL keys but is there any other way?

For example the group I like starts at object 2243 - is there any way to quickly navigate to it without scrolling?

2.
How can I display a list of existing maps to open? Judging from the documentation it should be possible to open an existing map, copy particularly comples section (like Navarro hangar roof) and paste it in another project.
« Last Edit: November 20, 2013, 20:37 by mrsarcastic »

Realism

  • Jr. Member
  • **
  • Posts: 71
    • View Profile
Re: Fonline 2 Mapper
« Reply #10 on: November 21, 2013, 17:36 »
1.is there any way to bookmark particular items?
1. Go to mapper/data/scripts/ folder, rename file "MAPPER_mapper_main.fosp" to "mapper_main.fos" and open it with any text editor.
2. Find InitializeTabs() function. Here you can add a tab with items you want like this:
Code: [Select]
pids.resize(0);
pids.insertLast(123);
pids.insertLast(321);
pids.insertLast(555);
TabSetItemPids((8),"My Tab", pids);

2. How can I display a list of existing maps to open?
1. Run mapper.
2. Open some maps.
3. Find "Map" button.

Trickster

  • Hero Member
  • *****
  • Posts: 1129
    • View Profile
Re: Fonline 2 Mapper
« Reply #11 on: November 21, 2013, 17:53 »
@Realism
Thank you very much for the reply. As for the second part I may not express the problem accurately enough.

I'd like to know how to open an existing map. For example some desert encounter to use ground tiles as a template for a desert shack I want to create.
I am using mapper Skycast posted. I don't have SDK nor do I have any experience using it. I just would like to open a list of Fonline maps (those already created) and pick one to edit. Is it possible? In the meantime I am downloading SDK from Fodev.net.

Realism

  • Jr. Member
  • **
  • Posts: 71
    • View Profile
Re: Fonline 2 Mapper
« Reply #12 on: November 21, 2013, 18:13 »
Yes, maps wasn't provided, so you have nothing to open. Just download SDK, you'll find existing maps there.

For example some desert encounter to use ground tiles as a template for a desert shack I want to create.
I recommend to not to copy/paste desert tiles. Since everybody do it we have same pattern on most desert maps.  :)

This could help you.
 
« Last Edit: November 21, 2013, 18:32 by Realism »

Trickster

  • Hero Member
  • *****
  • Posts: 1129
    • View Profile
Re: Fonline 2 Mapper
« Reply #13 on: November 22, 2013, 22:42 »
Thanks for your advice Realism.

Here's another question:

Currently scenery objects in my mapper are arranged into categories like this:


It's very cool but far from being complete as only 900 items are categorized. To get any of the rest I must dig down to "All" category which is extremely tedious.
I guess it would immensely speed up work for all Mappers if all items were categorized - is there any ay to do it? I don't mind spending few hours doing that and posting my work for everyone to use it. Just gimme know-how : )

And is it too much to ask for a simple CTRL+Z feature? : )
« Last Edit: November 22, 2013, 22:55 by mrsarcastic »

Pepik

  • Hero Member
  • *****
  • Posts: 987
    • View Profile
Re: Fonline 2 Mapper
« Reply #14 on: November 25, 2013, 00:20 »
Mapper is really cool.
It takes my one hour to make my first small (uncomplete) map  :).
Spoiler