Author Topic: FO Mapper not loading new assets  (Read 6622 times)

FO Mapper not loading new assets
« on: July 02, 2013, 04:27:53 pm »
I opened up FOnline Mapper but it doesn't detect any of my new items that I made (weapons, armor, walls, tiles, etc.).
How would I do this?

Re: FO Mapper not loading new assets
« Reply #1 on: July 02, 2013, 04:47:39 pm »
Did you add them to their correspoding proto lists?

....\....\Server\proto\items


Any item that you want to be shown in game(and mapper) must be added there. Use object editor to do it faster.
Works the same way for new NPC's. The mapper is influenced by the client and server.
« Last Edit: July 02, 2013, 04:52:27 pm by raynor009 »

Re: FO Mapper not loading new assets
« Reply #2 on: July 02, 2013, 08:06:05 pm »
Did you add them to their correspoding proto lists?

....\....\Server\proto\items


Any item that you want to be shown in game(and mapper) must be added there. Use object editor to do it faster.
Works the same way for new NPC's. The mapper is influenced by the client and server.

Yes I did. They show up ingame. I set up the paths in the mapper.cfg to point to server and client.

Re: FO Mapper not loading new assets
« Reply #3 on: July 03, 2013, 04:38:01 pm »
Yes I did. They show up ingame. I set up the paths in the mapper.cfg to point to server and client.


You don't have to set any paths, it'll work fine even without doing that.

JovankaB

  • Guest
Re: FO Mapper not loading new assets
« Reply #4 on: July 03, 2013, 04:50:22 pm »
Yes I did. They show up ingame. I set up the paths in the mapper.cfg to point to server and client.

Objects aren't added automatically in 2238 Mapper tabs. You have to add their proto ids in Mapper/tabs.cfg
Preferably in the right tab/subtab of course, same with tiles but in this case use tile prefixes

Most tabs in Mapper have subtabs if you click them again.

It's a bit more work when you add a new object to game but it pays out later when you make maps,
because you spend less time scrolling and looking for various things. Also there are items which simply
make no sense in Mapper because they are used exclusively by scripts.
« Last Edit: July 03, 2013, 05:05:37 pm by b__B »

Re: FO Mapper not loading new assets
« Reply #5 on: July 04, 2013, 02:23:18 am »
Objects aren't added automatically in 2238 Mapper tabs. You have to add their proto ids in Mapper/tabs.cfg
Preferably in the right tab/subtab of course, same with tiles but in this case use tile prefixes

Most tabs in Mapper have subtabs if you click them again.

It's a bit more work when you add a new object to game but it pays out later when you make maps,
because you spend less time scrolling and looking for various things. Also there are items which simply
make no sense in Mapper because they are used exclusively by scripts.

Tabs.cfg doesn't exist in the mapper directory. Do I create tabs.cfg and add it just like how the items were added in the ItemNames.lst?

JovankaB

  • Guest
Re: FO Mapper not loading new assets
« Reply #6 on: July 04, 2013, 02:35:32 am »
It should exist if it's 2238 Mapper from here
http://fo2238.fodev.net/source/FOnline2238.client+mapper.zip

Re: FO Mapper not loading new assets
« Reply #7 on: July 08, 2013, 04:16:12 pm »
I don't understand how to add tiles. It looks like this:
Code: [Select]
###############
# Floor Tiles #
###############

[SubTab]
MainTab=11
Tiles=arfl bld brcbr brd brick brn cabrik capb car cav1 cav2 cav3 cav4 cav5 cavb cmt crbm crta crtb curb edg en foot gar gek gras grt head hol ment mnt moda mstrflr plt road rst run_ saus sbrdg seas sewr shipflr shor silo slime stlflr tepflr towr tp153 tp154 tp155 tp156 tp157 tp158 tp159 tp160 tp161 tp162 tp163 tp164 tp165 tp166 tp167 tpl vtggr water

Unlike the other items in the tabs.cfg, which I believe they are PID ID for items and Critter ID for NPCs and creatures.
Code: [Select]
################
# Normal Items #
################

[SubTab]
MainTab=1
Name=001 - weapons: small
Pids=8 9 10 18 22 23 94 122 143 161 162 241 242 261 268 283 287 296 299 300 313 332 351 352 353 354 385 388 391 392 394 398 403 404 405 500...

JovankaB

  • Guest
Re: FO Mapper not loading new assets
« Reply #8 on: July 09, 2013, 09:01:45 am »
Tiles don't have protos and therefore proto Ids don't exist either, that's why format is different.

In case of tiles it's filename prefixes, for example "bld" will add everything in tile directory that starts with "bld": bld001.frm, bld002.frm, and so on. Subtabs of tiles are created and named automatically, it's impossible to control it with AngelScript (which sucks, but it is what it is). The only reason the tiles are in tabs.cfg at all, is because I wanted at least the floor and the roof tiles to be in separate tabs, which cuts the mess by half.
« Last Edit: July 09, 2013, 09:38:18 am by b__B »

Offline Alvarez

  • Forget the past, go outside and have a blast
Re: FO Mapper not loading new assets
« Reply #9 on: January 22, 2014, 07:22:48 pm »
Which PID ranges are reserved and which could be taken for new objects?
I could not add any new PIDs beyond 10225.

Re: FO Mapper not loading new assets
« Reply #10 on: January 22, 2014, 07:41:54 pm »
I never had any problems adding new items. I simply doubleclick on the "items" tab and select te fopro in which I find the new object.

I also havent seen anything strange with high pids. There is some limit somewhere of 30000 pids or soemthing, but right now im using pids of 10800+ without problems.

Offline Alvarez

  • Forget the past, go outside and have a blast
Re: FO Mapper not loading new assets
« Reply #11 on: January 22, 2014, 08:50:56 pm »
Look, John: I added a item with PID 10225 in generic.fopro, saved, added the PID in tabs.cfg, saved, it displayed in the mapper, but the mapper ignores consequently the entry for PID 10226.
I checked the path, it's in the client folder i specified for the mapper, the graphic is in the same location as the graphic for 10225, the filename is correct, it has a PID entry in tabs.cfg, but it won't show up in mapper.
So i thought it has something with concept of flags that is beyond my knowledge.
I loaded up the backup of generic.fopro and cloned a woodpanel object in Object Editor for a new object with PID 10226, saved the list, edited the path to graphic in Notepad++, saved and fired up the mapper.

Nothing shows up in the method you described. Also, nothing is in the whole list.
I am confused and frustrated.
Also, is there a mapper command for searching a certain PID?


Argh. Sigh.
And the cause was little and devastating. I put the tabs.cfg backup copy outside of the mapper folder, later desperately edited it, thinking it was THE ACTUAL TABS.CFG, again and again.

And the morale of the story, Alvarez: check the minor details before you blame the code, ...
« Last Edit: January 22, 2014, 09:01:34 pm by Alvarez »