Home » MODDING HQ 1.13 » v1.13 General Development Talk » ja2MapTool (Initial release)
ja2MapTool[message #350420] Sun, 30 July 2017 20:37 Go to next message
The_Bob is currently offline The_Bob

 
Messages:415
Registered:May 2009
Location: Behind you.
I've created a tool for converting JA2 maps between different mods. It works by remapping tiles and items in these maps, so they won't look all crazy when opened in the target mod.

https://i.imgur.com/CYREjCI.jpg

Download link: https://www.dropbox.com/s/kx6qjqg6patn2mt/ja2MapTool.jar?dl=1 (latest version posted later in this thread)
Github: https://github.com/starcatter/ja2tools

It may require a fairly recent Java version. Also, it eats up RAM like crazy, so be sure to bring plenty.

Perhaps what's more interesting than the tool itself are the utilities necessary to make it happen - Java classes for reading a bunch of JA2 data files and making sense of them. Hopefully someone will find a way to use these to make a bunch of other useful JA2 tools.

Here's a quick manual: http://imgur.com/a/dOHXx

Note that it's still rather rough around the edges, but since I'm out of time to regularly work on it, I'm releasing it as it is. The core functionality should be solid enough, I'm sure I've tested it at least once...

Also, I'm looking for people to help me finish this tool, so if you're interested in contributing, don't hesitate to let me know! There's plenty to do on this project.

[Updated on: Thu, 19 April 2018 14:16]

Report message to a moderator

Master Sergeant
Re: ja2MapTool[message #350421 is a reply to message #350420] Sun, 30 July 2017 21:14 Go to previous messageGo to next message
Flugente

 
Messages:3509
Registered:April 2009
Location: Germany
This seems very useful, good job thumbs up
Are there any limitations on map versions, or does this mean we could upgrade any old map to a new state?



I know now that it could never work between us, as much as we wanted to, it could never be! Not because you're a rabbit, but because you're black.

If you want, you can donate to me. This will not affect how and what I code, and I will not code specific features in return. I will be thankful though.

Report message to a moderator

Captain

Re: ja2MapTool[message #350422 is a reply to message #350421] Sun, 30 July 2017 22:39 Go to previous messageGo to next message
The_Bob is currently offline The_Bob

 
Messages:415
Registered:May 2009
Location: Behind you.
As far as I've checked, it can read any old map, or at least JA2 Gold and up. There may be some glitches when upgrading items with attachments on very old maps, since I wasn't crazy enough to port all of the item migration code... But it shouldn't produce anything the game won't be able to handle. All maps coming out of the tool are at the latest version, unless there's some recent new version I don't know about. So yeah, the map loader module could be used to automatically upgrade all the maps to the latest version, and it wouldn't take long either, last I've tested it could load all vanilla maps in a couple of minutes.

Two things I forgot to mention in the first post, the tool can open maps from any location, not just the game dir, as long as you give it somewhere to get tiles and items from. Also, if you put the jar in the game directory, or somewhere else that contains VFS configs, it will automatically detect that and you won't have to add that directory at the start.

Report message to a moderator

Master Sergeant
Re: ja2MapTool[message #350425 is a reply to message #350420] Mon, 31 July 2017 07:21 Go to previous messageGo to next message
pheloncab is currently offline pheloncab

 
Messages:278
Registered:August 2004
Location: So. Cal. or texas
While not a modder, as an avid user of mods, THANK YOU Buddies Thank you !!

This should be great for many reasons including those wanting to bring older mods into the new items/exe files.

Report message to a moderator

Master Sergeant
Re: ja2MapTool[message #350432 is a reply to message #350425] Tue, 01 August 2017 20:16 Go to previous messageGo to next message
The_Bob is currently offline The_Bob

 
Messages:415
Registered:May 2009
Location: Behind you.
I've added a much needed feature, tileset auto-mapping.

https://i.imgur.com/uZOMZB0.png

Download: https://www.dropbox.com/s/endlo00i950knz1/ja2MapTool-Alpha3.jar?dl=1

Clicking on the auto map button will make the tool do most of the work for you:

  • Tile categories that are in the same file as the source will be marked with a light shade of blue. They should be similar enough.
  • Categories that were in a different file that was found in the target tileset will be mapped to that file and marked light green.
  • All remaining tiles will be compared to tiles in the target tileset and if any sufficiently similar looking tiles are found, a suggestion list will be created. If the best suggestion is good enough, the tile will be automatically mapped. Categories with auto-matched tiles are marked yellow.
  • In case the tool has no idea what to do with a given tile category, it will mark it light red.

So far I've only managed to put together a simple histogram-based image comparison system, so aside from very similar looking tiles the suggestions aren't very good. OTOH, together with file-matching, this seems to get a fair bit of work done, so we're off to very good start anyway.

Report message to a moderator

Master Sergeant
Re: ja2MapTool[message #350434 is a reply to message #350420] Tue, 01 August 2017 23:47 Go to previous messageGo to next message
Darkling is currently offline Darkling

 
Messages:8
Registered:April 2016
Location: New Zealand
Very nice!

Puts my map item mapping code (in Haskell, no prebuilt execs) to shame. For those interested go to hub.darcs.net/Rohan/ja2-mapper
Thanks to my laziness it supports only the latest map format and does everything with text files and the command line. One possible use is that it can list all items used in a map and warns if any are undefined (NADA)

Perhaps these other two projects will be of more utility (given the same item mapping file as above)

    hub.darcs.net/Rohan/ja2-item-diff will show some differences (currently coolness, scifi, repairable, notBuyable but easily changed in the code) between the mapped items in each mod
    hub.darcs.net/Rohan/ja2-item-mapper can update items in semi arbitrary XML and annotates each with the item name
Documentation is essentially nil but if anyone's interested I'll look to "improve that soon (tm)".

Report message to a moderator

Private
Re: ja2MapTool[message #350435 is a reply to message #350432] Wed, 02 August 2017 01:09 Go to previous messageGo to next message
edmortimer is currently offline edmortimer

 
Messages:1533
Registered:January 2015
Location: Home Free
I've always wanted to add a bit of Tracona to my AV mod and this utility will make that a lot easier! Much thanks and very appreciated!

Report message to a moderator

Sergeant Major
Alpha 4: map compositor[message #350474 is a reply to message #350420] Fri, 04 August 2017 20:33 Go to previous messageGo to next message
The_Bob is currently offline The_Bob

 
Messages:415
Registered:May 2009
Location: Behind you.
I've added a new feature to the map tool, a map compositor.
https://i.imgur.com/dMqIRRi.jpg

Download: https://www.dropbox.com/s/dnhye2ritx3eggr/ja2MapTool-Alpha4.jar?dl=1
Demo and manual: http://imgur.com/a/IDC4W

The map compositor allows you to do some copy-pasting on a map, while specifying which layers you want pasted. It automatically creates new room numbers for pasted buildings. It can also copy map snippets between maps and depends on the map converter to remap tiles on the fly. So far it seems to produce working maps.

Let me know of the bugs you find, and how to reproduce them. I know there's a weird issue with selection cursors getting stuck inside the map converter, I'd love a step-by-step of how to cause that.

Report message to a moderator

Master Sergeant
Re: Alpha 4: map compositor[message #350478 is a reply to message #350474] Sat, 05 August 2017 01:48 Go to previous messageGo to next message
The_Bob is currently offline The_Bob

 
Messages:415
Registered:May 2009
Location: Behind you.
Small update, as I was checking how the tool handles maps from various mods I've noticed it didn't work well with VFS configs not based on Vanilla maps, so I fixed that...
https://i.imgur.com/ig6JxXf.jpg
Download: https://www.dropbox.com/s/nmdg0vvoge5rzj1/ja2MapTool-Alpha5.jar?dl=1

I've also improved the map selector, now it shows maps grouped be VFS profile. Selecting same map under different profiles works as expected - you get different map versions. I just hope it's not more confusing this way.

Report message to a moderator

Master Sergeant
Re: Alpha 4: map compositor[message #350488 is a reply to message #350478] Sun, 06 August 2017 00:39 Go to previous messageGo to next message
The_Bob is currently offline The_Bob

 
Messages:415
Registered:May 2009
Location: Behind you.
Finally, I fixed the broken palette. Things look much nicer now!
https://i.imgur.com/shOoqo2.png
Download: https://www.dropbox.com/s/8xutnn9h3q0i4mv/ja2MapTool-Alpha6.jar?dl=1
Visual changelog: http://imgur.com/a/p2CWl

I've improved the renderer a bit, I mean beyond the fixed palette. Now we've got proper a placement preview and more accurate cursors. I've changed the way selection works, now only a ctrl-click will erase the selection start marker, meaning you can scroll the screen before placing the selection-end marker. Also the placement preview should properly react to changes in selected snippet and placing things on the map should feel more responsive. If you forgot to remap something before placing a snippet, you can now change the mapping, reselect the mapping/snippet, and hit the Paste button again, it should remember where you placed the last thing and overwrite it.

Oh and I fixed the stuck-selection bug. This version should be more user friendly.

Report message to a moderator

Master Sergeant
thumbs26.png  Alpha 7: placements and layers[message #350600 is a reply to message #350420] Tue, 15 August 2017 14:03 Go to previous messageGo to next message
The_Bob is currently offline The_Bob

 
Messages:415
Registered:May 2009
Location: Behind you.
I've expanded the idea of copy-pasting maps and added the option to place multiple snippets before committing them to the map.
https://i.imgur.com/wGXaukM.png

download: https://www.dropbox.com/s/rqvppze6xh59y7i/ja2MapTool-alpha7.jar?dl=1
presentation and usage instructions: http://imgur.com/a/ZVKun

There's quite a bit that has changed! Check the imgur link for details. Being able to move chunks of the map around should make designing map layouts a bit easier. I've added layers because placing snippets on top of each other sucked otherwise.

I've also improved the VFS browser, now it shows map/sti previews as soon as you select the VFS file or its variant, making it quite handy for browsing game assets. The map viewer still uses the old click-to-scroll navigation, the editor windows (converter and compositor) now use cursors/wsad to scroll (shift to scroll faster), space to center map.

Report message to a moderator

Master Sergeant
Re: Alpha 7: placements and layers[message #350604 is a reply to message #350600] Tue, 15 August 2017 22:30 Go to previous messageGo to next message
The_Bob is currently offline The_Bob

 
Messages:415
Registered:May 2009
Location: Behind you.
I've noticed the tool wasn't working as fast as it should, so I fixed a bunch of performance issues.
Here's the fixed version: https://www.dropbox.com/s/b4ga4qv43gcywgv/ja2MapTool-alpha8.jar?dl=1

Report message to a moderator

Master Sergeant
Re: ja2MapTool[message #352557 is a reply to message #350420] Sun, 25 February 2018 02:20 Go to previous messageGo to next message
The_Bob is currently offline The_Bob

 
Messages:415
Registered:May 2009
Location: Behind you.
Has anyone tried using this for anything? How did it go?

Report message to a moderator

Master Sergeant
Re: ja2MapTool[message #352558 is a reply to message #352557] Sun, 25 February 2018 02:44 Go to previous messageGo to next message
edmortimer is currently offline edmortimer

 
Messages:1533
Registered:January 2015
Location: Home Free
I experimented with it and it seemed to work fine, but I haven't made a map and used it in-game yet.

Report message to a moderator

Sergeant Major
Re: ja2MapTool[message #352574 is a reply to message #350420] Wed, 28 February 2018 06:49 Go to previous messageGo to next message
UBAH is currently offline UBAH

 
Messages:28
Registered:October 2007
tried to remap items on map A9 from 1.13wildfire_6.07 to AFS

1 created item mapping betveen 1.13 and AFS (not full item mappping, just LBE gear)
2 loaded VFS configs for 1.13WF607 and AFS, loaded map in your tool on tab 'convert map', loaded item mapping at tab 'item mapping'
3 exported map
4 tried to load map A9 in map editor in order to see if hunter vest was correctly mappped (without mapping it appear as NADA)
5 map editor crashed loading converted map

what was my mistakes?

Report message to a moderator

Private 1st Class
Re: ja2MapTool[message #352575 is a reply to message #352574] Wed, 28 February 2018 13:10 Go to previous messageGo to next message
The_Bob is currently offline The_Bob

 
Messages:415
Registered:May 2009
Location: Behind you.
You'll also need to create a mapping for tilesets (1.13WF607 -> OMERTA to AFS -> OMERTA), you can use the auto map feature to get some of the tiles in alignment but the tilesets are quite different so you'll need to fix a bunch of things by hand.

The 'NINTHOSTRUCT' group is causing the most trouble, the closest thing in the AFS tileset to the tall grass is the "WEEDS" tile group. You can save a few clicks by selecting the first item in the 'NINTHOSTRUCT' group then ctrl-clicking the 'WEEDS' group - all tiles from the second group will be mapped starting at the currently selected tile. You'll need to do this twice, since there's less tiles in the 'WEEDS' group.

Another tip, you don't need to remap everything since many tilesets (like OMERTA) are limited to just one or two maps. Inspect the map in the converter, switching between the original and remapped views, and focus on the parts that look wrong in the remapped view. After you change the mapping you'll need to reload it in the converter before you see the changes.

Then again, since AFS doesn't come with its own maps, maybe you can simply replace AFS tilesets with the ones from WF607, AFAIK the only thing you'll need to preserve somehow are the ground images for AFS items. There's a "Ja2Set.dat.xml.AFS" file in the WF mod, maybe that has something to do with it. Then you'd only need to remap the items, although that way you'd have to convert all the maps that contain items to avoid any glitches.

[Updated on: Wed, 28 February 2018 13:12]

Report message to a moderator

Master Sergeant
Re: ja2MapTool[message #352576 is a reply to message #352575] Wed, 28 February 2018 14:28 Go to previous messageGo to next message
UBAH is currently offline UBAH

 
Messages:28
Registered:October 2007
'Then again, since AFS doesn't come with its own maps, maybe you can simply replace AFS tilesets with the ones from WF607 ... Then you'd only need to remap the items, although that way you'd have to convert all the maps that contain items to avoid any glitches.'

could you please explain in more detail how I do this. I made AFS to work on WF maps with use of the file Ja2Set.dat.xml.AFS, which you mentioned, but which steps should I take to remap items?

Report message to a moderator

Private 1st Class
Re: ja2MapTool[message #352577 is a reply to message #350420] Wed, 28 February 2018 15:38 Go to previous messageGo to next message
The_Bob is currently offline The_Bob

 
Messages:415
Registered:May 2009
Location: Behind you.
You'd need to load VFS configs for WF607 and AFS, create an item mapping between them open the map converter and load the mapping, and then load each map into the converter and save it. Or at least all the maps where you think there might be incompatible items, so probably all towns, SAMs, caches and other interesting sectors. Just uh... Make sure it works after you do a few maps, it definitely should but it's still an early version so better safe than sorry.

If that sounds like too much manual work, I can try to add some sort of bulk processing option to the map tool, although that would probably have to wait until the weekend.

Report message to a moderator

Master Sergeant
Re: ja2MapTool[message #352578 is a reply to message #352577] Wed, 28 February 2018 17:02 Go to previous messageGo to next message
UBAH is currently offline UBAH

 
Messages:28
Registered:October 2007
The_Bob wrote on Wed, 28 February 2018 16:38
You'd need to load VFS configs for WF607 and AFS, create an item mapping between them open the map converter and load the mapping, and then load each map into the converter and save it. Or at least all the maps where you think there might be incompatible items, so probably all towns, SAMs, caches and other interesting sectors. Just uh... Make sure it works after you do a few maps, it definitely should but it's still an early version so better safe than sorry.

If that sounds like too much manual work, I can try to add some sort of bulk processing option to the map tool, although that would probably have to wait until the weekend.


that's that i have done (see my first post), but i can't load exported map even in map editor. the only thing which confuses me is that i didn't see button 'convert map'. i just loaded item mapping and map onto tab 'convert map' and clicked 'export map' button. may be my map editor is too old (my version is 8408), or too new?

about manual work - still it'll be easier than manually parse each map in the map editor (i'm doing this right now and automatic parsing would be a major relief).

Report message to a moderator

Private 1st Class
Re: ja2MapTool[message #352579 is a reply to message #352578] Wed, 28 February 2018 17:39 Go to previous messageGo to next message
The_Bob is currently offline The_Bob

 
Messages:415
Registered:May 2009
Location: Behind you.
The map tool saves the maps in the most recent format, not sure if that might be incompatible with your version of the editor. Can the game load the converted maps properly? It worked fine for me. Try remapping known items in the A9 map to something weird and see if that shows up in the game.

I think the first attempt you mentioned might've crashed the editor because the tilesets were incompatible between WF607 and AFS, it should work if the AFS tileset was replaced by the one from WF607. AFAIK it should be enough to replace the tile definition xml and copy over the tileset directory. TBH I don't really know how to transfer the AFS ground images for items, I think they should be in one or two .sti files that come with AFS and you should be able to view them in the tileset mapping editor (somewhere at the end of the tile group list). You can also use the VFS browser in the map tool to view the .sti file contents.

Maybe someone else can provide instructions on how to properly merge the tilesets. Also, there's a bunch of other files in the WF607 mod that might need to replace or be merged with stuff from AFS. I mean, the maps themselves should work after going through the map tool, but I'm not sure about the rest of the campaign... Although I'd expect the game to manage somehow and be playable anyway.

Report message to a moderator

Master Sergeant
Re: ja2MapTool[message #353087 is a reply to message #352579] Thu, 12 April 2018 19:51 Go to previous messageGo to next message
UBAH is currently offline UBAH

 
Messages:28
Registered:October 2007
New question on map tool. Creating item mapping, I cannot figure out, which category should I search for toolbox and wire cutter. Under 'misc' caterory, where this items could be logically placed, I see only subcategories 'food', 'drugs', 'clothes', for example. Other categories seem to be not suitablle for such items. Also I didn't notice item attachments in item lists.

[Updated on: Thu, 12 April 2018 19:53]

Report message to a moderator

Private 1st Class
ja2MapTool Alpha9[message #353102 is a reply to message #353087] Fri, 13 April 2018 01:11 Go to previous messageGo to next message
The_Bob is currently offline The_Bob

 
Messages:415
Registered:May 2009
Location: Behind you.
Yeah about that... I kinda forgot to handle kits, face items, keys and most misc items in general. Thanks for helping me notice that happy

Here's a fixed version: https://www.dropbox.com/s/1bqi4s0b1kmgb79/ja2MapTool-alpha9.jar?dl=1

Report message to a moderator

Master Sergeant
Re: ja2MapTool Alpha9[message #353111 is a reply to message #353102] Fri, 13 April 2018 07:17 Go to previous messageGo to next message
UBAH is currently offline UBAH

 
Messages:28
Registered:October 2007
First success with your tool - converted A9 map from vanilla 1.13 items to AIMNAS items (this mod makes a mess out of basic vanilla items) and loaded it in map editor to see crowbar and wire cutter converted to crowbar and multytool.
Thanks for the program, will continue experimenting.

Report message to a moderator

Private 1st Class
Re: ja2MapTool Alpha9[message #353114 is a reply to message #353111] Fri, 13 April 2018 10:55 Go to previous messageGo to next message
UBAH is currently offline UBAH

 
Messages:28
Registered:October 2007
Finally I managed to convert WF's map A9 and read it in map editor. To do this I had to include in item conversion table all items, placed on this map (initially i tried to convert only one item --- hunter vest). Obviuosly, when maptool finds on map item, which he cannnot find item conversion table entry for, resulting map can get unreadable.
Still, there is at least one weakness in converted map. Original map has 8 landmines (item with UI index 234) --- on converted map all of them disappeared.

A couple of suggestions on maptool UI:
- it would be really helpful to have some kind of map conversion log, something like this "item ... uiindex ... succesfully converted to item ... uiindex ... .... times", "item ... uiindex ... did not convert succesfully due to connversion rule absence ... times" etc
- also, it would be helpful to see on 'Map items' tab uiindexes of items along with their names and pictures.
- it would be really nice to have possibility to add missed entries to item conversion table during map conversion process --- to fill gaps on the fly.

[Updated on: Fri, 13 April 2018 12:04]

Report message to a moderator

Private 1st Class
Re: ja2MapTool Alpha9[message #353142 is a reply to message #353102] Sun, 15 April 2018 10:32 Go to previous messageGo to next message
UBAH is currently offline UBAH

 
Messages:28
Registered:October 2007
Sorry for being persistent, but is there any hope for landmines problem remedy? If this problem is solved, your tool can be of great help for Ja2 players.

Report message to a moderator

Private 1st Class
ja2MapTool Alpha10[message #353153 is a reply to message #353142] Sun, 15 April 2018 17:14 Go to previous messageGo to next message
The_Bob is currently offline The_Bob

 
Messages:415
Registered:May 2009
Location: Behind you.
I got rid of the old item auto-mapping code and started work on a more extensive system. While it's still a bit off in some places, I think it's more accurate.
Also, it seems to have fixed the landmine problem, a lot more stuff is remapped now and whatever is left is mapped to the "Nothing" item so the maps should still work.

Here's the new version: https://www.dropbox.com/s/ii8fq1sct5sad20/ja2MapTool-alpha10.jar?dl=1

You can see a list of remapped items in the console output, after you save the map. To see the console output, you'll need to start the application from a console window.
If you're on windows, you can do it with the .bat file in this archive: https://www.dropbox.com/s/rlp6bx073imn05r/ja2MapTool-alpha10-starter.zip?dl=1

Report message to a moderator

Master Sergeant
Re: ja2MapTool Alpha10[message #353157 is a reply to message #353153] Sun, 15 April 2018 19:01 Go to previous messageGo to next message
UBAH is currently offline UBAH

 
Messages:28
Registered:October 2007
Still getting troubles trying to load map after incomplete item remapping.
I think, the troublemaker is canteen (#214). When I add it to item table - converted map loads, when remove - editor crashes.
Landmines still disappear from converted map (in conversion log they are mentioned as action items #234).

[Updated on: Sun, 15 April 2018 19:09]

Report message to a moderator

Private 1st Class
Re: ja2MapTool Alpha10[message #353227 is a reply to message #353157] Thu, 19 April 2018 14:14 Go to previous messageGo to next message
The_Bob is currently offline The_Bob

 
Messages:415
Registered:May 2009
Location: Behind you.
So as I understand, it kinda works now. The auto-map feature is there to make sure there are no unmapped items/tiles left, so the produced maps are technically valid, although potentially messed up. You'll still have to fix the broken parts by manually remapping the stuff that wasn't translated to anything reasonable. I don't expect partial mappings to work between incompatible mods, even though in theory they should.

Also, the code that does the remapping doesn't do anything fancy, it just changes item IDs or marks them as non-existent, and worse yet, it does it at file binary level. Now that I think about it, it completely ignores attachments on items, so not only will they not be remapped, if a top-level item /w attachments is remapped to something that can't accept attachments, or has a different attachment layout, things might crash.

[Updated on: Thu, 19 April 2018 14:15]

Report message to a moderator

Master Sergeant
Re: ja2MapTool Alpha10[message #353433 is a reply to message #353227] Fri, 11 May 2018 13:33 Go to previous messageGo to next message
The_Bob is currently offline The_Bob

 
Messages:415
Registered:May 2009
Location: Behind you.
Here's version 11 with proper trimming of map edges and view window centering.
https://i.imgur.com/4HIGYnc.jpg

Download: https://www.dropbox.com/s/wdwok22fjbj8rld/ja2MapTool-alpha11.7z?dl=1
The package comes with two .bat files, one for starting under Java8, the other for Java9 and up.

By default map zoom is now adjusted to fit the map in the view window. This makes the VFS browser even more fun to use (available in the VFS menu for all loaded VFS configs). Pressing space will revert the view to the zoomed out mode.

Report message to a moderator

Master Sergeant
Re: ja2MapTool[message #353936 is a reply to message #350420] Tue, 03 July 2018 02:52 Go to previous messageGo to next message
Neitronus is currently offline Neitronus

 
Messages:34
Registered:October 2014
https://i.imgur.com/Pwzt4Nn.png
Here's my issue. I got item related part from AIMNAS and maps from JA2 WF 6.07 and for some sectors, whenever i try to convert them with your tool, i get this error. The said exported map shows that items were partially removed from the map entirely and some left unchanged. (At some cases i cannot even open a map in editor, loading map just crashes it) Any tips?

[Updated on: Tue, 03 July 2018 06:49]

Report message to a moderator

Private 1st Class
Re: ja2MapTool[message #353946 is a reply to message #353936] Tue, 03 July 2018 16:52 Go to previous messageGo to next message
The_Bob is currently offline The_Bob

 
Messages:415
Registered:May 2009
Location: Behind you.
Thanks for letting me know!
Looks like a problem with maps that have no schedules saved - should be fixed in this version:
https://www.dropbox.com/s/mpcqrzi4jatearm/ja2MapTool-alpha11b.7z?dl=1

Can I have a look at some of your item mappings and maps that don't save properly?

[Updated on: Tue, 03 July 2018 16:55]

Report message to a moderator

Master Sergeant
Re: ja2MapTool[message #353947 is a reply to message #353946] Tue, 03 July 2018 21:59 Go to previous messageGo to next message
Neitronus is currently offline Neitronus

 
Messages:34
Registered:October 2014
Sure thing. Here's an original map from WF 6.07 (Click to download). And here's its converted version which crashes an editor on opening (Click to download). I removed almost all of them but maybe could reproduce the bug and send you the resulted map which can be opened but with items removed etc (Will do that soon and edit this post right after it). Also i tried to convert this exact map with your maptool v.11b and even though it completes the expert without errors, it also has nothing in console (it supposed to have log of item transitions, right? like "item X -> item Y) and opening the resulting map causes editor to crash.

P.S. Probably all that stuff will go a bit faster if you add me in Steam, or in Discord: Neitronus#0287.

[Updated on: Tue, 03 July 2018 22:11]

Report message to a moderator

Private 1st Class
Re: ja2MapTool[message #353948 is a reply to message #353947] Tue, 03 July 2018 22:32 Go to previous messageGo to next message
The_Bob is currently offline The_Bob

 
Messages:415
Registered:May 2009
Location: Behind you.
I changed the .bat file so the editor now creates files for message and error logs, that way it's easier to paste the whole thing.

Can you also post the item mappings? You can save them to a file, that way I'll be able to run the same thing and see exactly where the map tool messed up.

Report message to a moderator

Master Sergeant
Re: ja2MapTool[message #353950 is a reply to message #353948] Tue, 03 July 2018 23:17 Go to previous messageGo to next message
Neitronus is currently offline Neitronus

 
Messages:34
Registered:October 2014
Here's my item mappings (ItemMap: Click to download (Dropbox)).

Also, can you bring that console info back along with the logs? I mean it's easier for me to see which maps recieved errors upon conversion if it's in the console. But it's better to keep logs in files for reporting too.

[Updated on: Tue, 10 July 2018 22:29]

Report message to a moderator

Private 1st Class
Re: ja2MapTool[message #353980 is a reply to message #353950] Mon, 09 July 2018 18:32 Go to previous messageGo to next message
The_Bob is currently offline The_Bob

 
Messages:415
Registered:May 2009
Location: Behind you.
You should be able to view the log files as they are written, editors like notepad++ can refresh and show new stuff as it appears. Or you can remove the output redirection stuff from the .bat file, the stuff with numbers and ">" characters.

I'm kinda working on the issue with exported maps crashing the editor but it seems to be related to how removed items are handled, or not really handled right now, so it's not a simple fix like the last thing. Not sure when I'll get enough time to start working on this TBH, hopefully sooner rather than later. It's on top of my to-do list for the map tool.

Report message to a moderator

Master Sergeant
Re: ja2MapTool[message #353983 is a reply to message #353950] Tue, 10 July 2018 00:21 Go to previous messageGo to next message
Neitronus is currently offline Neitronus

 
Messages:34
Registered:October 2014
I tried to convert one of maps (which i sent to you already) with maptool v11b and got this:
Message log:
Toggle Spoiler

Error log:
Toggle Spoiler


Looks like every other map which was bugged because of schedules, are now throwing this at me.

[Updated on: Tue, 10 July 2018 00:25]

Report message to a moderator

Private 1st Class
Re: ja2MapTool[message #353989 is a reply to message #353983] Tue, 10 July 2018 22:28 Go to previous messageGo to next message
Neitronus is currently offline Neitronus

 
Messages:34
Registered:October 2014
Me again. Cannot open a map. Bug is being triggered by any attempt to load it.
Map: Click to download (Dropbox)
ItemMap: Click to download (Dropbox)
Message log:
Toggle Spoiler

Error log:
Toggle Spoiler

Report message to a moderator

Private 1st Class
Re: ja2MapTool[message #354031 is a reply to message #353989] Sat, 14 July 2018 22:17 Go to previous messageGo to next message
Neitronus is currently offline Neitronus

 
Messages:34
Registered:October 2014
Can i ask if there's source files for this maptool anywhere? I'd like to tinker with this bug myself while you're buisy doing some other stuff.

Report message to a moderator

Private 1st Class
Re: ja2MapTool[message #354032 is a reply to message #350420] Sun, 15 July 2018 01:23 Go to previous messageGo to next message
The_Bob is currently offline The_Bob

 
Messages:415
Registered:May 2009
Location: Behind you.
There's a link to the github repo in the first post. Any help is welcome.

If you're going to be working with the code, take a look at the showCompositor() method in the intro tab, it can save you some time by automatically loading a VFS config and showing a map in the compositor. It shouldn't be too hard to put together a similar method for testing the map converter.

Report message to a moderator

Master Sergeant
Re: ja2MapTool[message #354037 is a reply to message #354032] Sun, 15 July 2018 11:01 Go to previous messageGo to previous message
Neitronus is currently offline Neitronus

 
Messages:34
Registered:October 2014
I'm struggling with maven (never really used it before, because not used to java), can you tell me if i need anything else preinstalled to compile stuff from your repo? I mean maven (i figured that you used it) reports missing dependancies everywhere when i try to build with "mvn package -amd". Looking at your jar file trough JD-GUI i can tell that there's a lot more of stuff in there so i figured maven supposed to find them somehow... But maybe i just don't have them? So, what else do i need? (JDK installed, all variable set up)

I get this error:
https://i.imgur.com/5Wuolbs.png

[Updated on: Sun, 15 July 2018 14:54]

Report message to a moderator

Private 1st Class
Previous Topic: Using WASD keys for scrolling
Next Topic: Code cleanups, how to contribute
Goto Forum:
  


Current Time: Fri Mar 29 08:12:48 GMT+2 2024

Total time taken to generate the page: 0.02282 seconds