Home » MODDING HQ 1.13 » v1.13 Modding, Customising, Editing » v1.13 Modding, Customising, Editing » Editor is not saving placed items
Editor is not saving placed items[message #328001] Tue, 12 November 2013 12:40 Go to next message
cnagorneac is currently offline cnagorneac

 
Messages:190
Registered:April 2012
Hi.
I tried to do some editing and encoutered the following problem:
When I place an item on the ground, save the map and load it again - it is not there.
Looks like I am doeing something wrong, but i barely have any good information on editing maps.
Hope any 1 can help me.

Report message to a moderator

Staff Sergeant
Re: Editor is not saving placed items[message #328003] Tue, 12 November 2013 13:07 Go to previous messageGo to next message
silversurfer

 
Messages:2793
Registered:May 2009
Can't reproduce with the current editor. Which version are you using and which item did you try to place?

Report message to a moderator

Lieutenant
Re: Editor is not saving placed items[message #328004] Tue, 12 November 2013 13:09 Go to previous messageGo to next message
Kriplo is currently offline Kriplo

 
Messages:256
Registered:February 2008
Location: Zagreb - Croatia
Uncheck checkbox "Saving in vanilla v1.12 mode" as this option not allow saving new items as those are not existing in vanilla mode.

Report message to a moderator

Master Sergeant
Re: Editor is not saving placed items[message #328006] Tue, 12 November 2013 13:26 Go to previous messageGo to next message
cnagorneac is currently offline cnagorneac

 
Messages:190
Registered:April 2012
silversurfer
Can't reproduce with the current editor. Which version are you using and which item did you try to place?

I downloaded last exe file and i am using updated svn.

Okay it works now. Thanks a lot.

I also wanted to try to place items 1623 - random NATO AR1 and 1624 - random WP AR1 and editor were constantly crushing. i was not able to save the map with those items on them.


Think I have to mention that I plced them on the ground because I still do not know how to place them inside a crate or something.

I will try to create a random item by myself and will try to place it also and see what happens.

[Updated on: Tue, 12 November 2013 13:42] by Moderator

Report message to a moderator

Staff Sergeant
Re: Editor is not saving placed items[message #328007] Tue, 12 November 2013 13:37 Go to previous messageGo to next message
Kriplo is currently offline Kriplo

 
Messages:256
Registered:February 2008
Location: Zagreb - Croatia
Write version of map editor you are using (appear during editor start), seems you had old one and latest one is not created (could compile one and put at my branch but not right now).

Yesterday testing placing random items and placing items in general and works fine expect random items not behave in game as expected.

Report message to a moderator

Master Sergeant
Re: Editor is not saving placed items[message #328009] Tue, 12 November 2013 13:39 Go to previous messageGo to next message
JMich is currently offline JMich

 
Messages:546
Registered:January 2011
Location: Greece
Quick question, when you mean they don't appear, do you mean they don't appear in the editor or ingame? If ingame, remember that any map changes require the map to not have been loaded in the game yet to be seen. So dropping in A9, saving, modifying A9 and loading the game will not show any of the changes.

Report message to a moderator

First Sergeant
Re: Editor is not saving placed items[message #328012] Tue, 12 November 2013 13:45 Go to previous messageGo to next message
cnagorneac is currently offline cnagorneac

 
Messages:190
Registered:April 2012
Thanks for all your feedback. You actually answered faster then i was able to react on them =) thanks guys.
At the moment everything is working, but as was mentioned, random items behave strange. I will try to make a random item by myself and test it.

Edit: I made a new random item tried to place it, but editor was always crushing. Sometimes right at the moment of placing the item, sometines when i wanted to go to options.
So looks like it is not possible to place random items at the moment.
Editor version is 1.13.6513 JA2_6567_Editor.exe

[Updated on: Tue, 12 November 2013 13:58] by Moderator

Report message to a moderator

Staff Sergeant
Re: Editor is not saving placed items[message #328074] Wed, 13 November 2013 09:30 Go to previous messageGo to next message
cnagorneac is currently offline cnagorneac

 
Messages:190
Registered:April 2012
Can any one confirm inability to place random items via editor? Or it is only my problem?

Report message to a moderator

Staff Sergeant
Re: Editor is not saving placed items[message #328080] Wed, 13 November 2013 14:20 Go to previous messageGo to next message
Kriplo is currently offline Kriplo

 
Messages:256
Registered:February 2008
Location: Zagreb - Croatia
You mean they not show up on RND button under editor ITEMS taskbar?
If that is your case then you are using current items.xml from v1.13 which don't have any so you need to create by yourself and don't forget to put correct class:

e.g. this one have incorrect class and will not appear inside editor:

1623
random NATO AR number 1
random NATO AR 1
If you can read this, Flugente propably didn't catch a certain way to create items. Go blame him!
random NATO AR 1
NO DESCRIPTION NECESSARY.
268435456
1
2
1
9
8
13
90
1
100
15
-1





change usItemClass to:
1073741824

anyway seems too much trouble for unfinished business.

Report message to a moderator

Master Sergeant
Re: Editor is not saving placed items[message #328082] Wed, 13 November 2013 14:52 Go to previous messageGo to next message
cnagorneac is currently offline cnagorneac

 
Messages:190
Registered:April 2012
no, I made them 1073741824
so they appear in the editor in the "RND" tab.
But editor is crashing when I try to place them.
I also tried to create a new random item by myself with the same outcome.

Report message to a moderator

Staff Sergeant
Re: Editor is not saving placed items[message #328088] Wed, 13 November 2013 17:19 Go to previous messageGo to next message
Kriplo is currently offline Kriplo

 
Messages:256
Registered:February 2008
Location: Zagreb - Croatia
Strange, can you upload all XMLs you edited for random items so me or someone else could try to reconstruct problem. Never be able to crash editor just with placing random items.

Report message to a moderator

Master Sergeant
Re: Editor is not saving placed items[message #328090] Wed, 13 November 2013 17:48 Go to previous messageGo to next message
cnagorneac is currently offline cnagorneac

 
Messages:190
Registered:April 2012
Ok, I will.

But i tried to reproduce the bug in many ways and figured out that even in fresh 1.13 (without eny editing), ig you go in editor in "RND" tab, there will be no items there (only 1 NADA item).
So if you go to "RND" tab and after that go to any other tab - editor crashes. I think the problem is not in the items themselve.

Report message to a moderator

Staff Sergeant
Re: Editor is not saving placed items[message #328092] Wed, 13 November 2013 18:01 Go to previous messageGo to next message
Kriplo is currently offline Kriplo

 
Messages:256
Registered:February 2008
Location: Zagreb - Croatia
Bug when there are no items under e.g. RND tab is fixed in r6530, are you sure that you compile mapeditor from the latest version from trunk?

Report message to a moderator

Master Sergeant
Re: Editor is not saving placed items[message #328093] Wed, 13 November 2013 18:12 Go to previous messageGo to next message
cnagorneac is currently offline cnagorneac

 
Messages:190
Registered:April 2012
Kriplo
Bug when there are no items under e.g. RND tab is fixed in r6530, are you sure that you compile mapeditor from the latest version from trunk?

I do not know what do you mean by Compile, but...
I downloaded JA2_6567_Editor.exe and updated the other files using TortoiseSVN right click > "SVN update" to revision 1870.
When I launch the editor it writes me 1.13.6513 (development build) build 13.10.19
Am I doing something wrong?

Report message to a moderator

Staff Sergeant
Re: Editor is not saving placed items[message #328094] Wed, 13 November 2013 18:31 Go to previous messageGo to next message
silversurfer

 
Messages:2793
Registered:May 2009
cnagorneac

When I launch the editor it writes me 1.13.6513 (development build) build 13.10.19
Am I doing something wrong?

That string is seldom updated so it means little. It's just an indicator if you are above an older revision.
You say that you "downloaded JA2_6567_Editor.exe". I assume that is from Depri's SCI?

Report message to a moderator

Lieutenant
Re: Editor is not saving placed items[message #328096] Wed, 13 November 2013 18:54 Go to previous messageGo to next message
Kriplo is currently offline Kriplo

 
Messages:256
Registered:February 2008
Location: Zagreb - Croatia
I'm still fixing map editor so could compile most recent one just for your test and put it at my trunk?

Report message to a moderator

Master Sergeant
Re: Editor is not saving placed items[message #328110] Wed, 13 November 2013 23:30 Go to previous messageGo to next message
cnagorneac is currently offline cnagorneac

 
Messages:190
Registered:April 2012
silversurfer
That string is seldom updated so it means little. It's just an indicator if you are above an older revision.
You say that you "downloaded JA2_6567_Editor.exe". I assume that is from Depri's SCI?

it is from Depri's place where you can download new exe files after updating with TortoiseSVN.

Kriplo
I'm still fixing map editor so could compile most recent one just for your test and put it at my trunk?

i do not really understand you... =(
If you ask me if you can compile most recent map editor for my test, then OK, I just have no idea where is your trunk.
If you are asking ME to compile map editor, then I have no idea how to compile anything.
Actually I just saw a forum post regarding compiling stuff. Gonna read it and maybe I will understand how to compile files.

Report message to a moderator

Staff Sergeant
Re: Editor is not saving placed items[message #328111] Wed, 13 November 2013 23:37 Go to previous messageGo to next message
silversurfer

 
Messages:2793
Registered:May 2009
I think Kriplo wants to compile an exe and put it in his trunk folder on SVN so you can download it and test on your system. Wink

Report message to a moderator

Lieutenant
Re: Editor is not saving placed items[message #328120] Thu, 14 November 2013 02:35 Go to previous messageGo to next message
Kriplo is currently offline Kriplo

 
Messages:256
Registered:February 2008
Location: Zagreb - Croatia
Map editor for testing purposes compiles with most recent trunk version and my own mess could be downloaded from:
https://ja2svn.dyndns.org/source/ja2/branches/Kriplo/MapEditor_EN_Release.exe

It also include radarmap creation for any screen and map size but this is still under testing and could lead to CTD so carefully with that button Smile

Report message to a moderator

Master Sergeant
Re: Editor is not saving placed items[message #328127] Thu, 14 November 2013 09:20 Go to previous messageGo to next message
cnagorneac is currently offline cnagorneac

 
Messages:190
Registered:April 2012
Thanks a lot.
My test results:
Downloaded the file, placed it in fresh unedited JA2 1.13 folder.
Launched, tried to go to the empty "RND" tab, then back - Crash.

Edited items.xml file
for item
1623
random NATO AR number 1

changed 268435456
to 1073741824

the item is now in "RND" tab. Placin it gives the followitg:
Runtime error
Press to exit
file : ..\src\Core\vfs_file_raii.cpp
line : 113
function : vfs:COpenWriteFile:CopenWriteFile
invalid file object
file : ..\src\Core\vfs_file_raii.cpp
line : 118
function : vfs:COpenWriteFile:CopenWriteFile

Created a new item in XML editor and then edited it in items.xml so it became like this:


1705
test random
test random item
no description
N_A
N_A
1073741824
2
95
100
1
1





Tried to place it with editor - it placed it.
placed second, third, fourth - it placed them. placed 5th - CTD with the same description as above.
Restarted editor. tried to place the same items: Place 1 item - OK place second - CTD without log.

So generally, after couple of more CTDs I managed to place both items (the one in wich i changed ItemClass, and the one I created) on the ground, Saved map and tried to play it.

When played, random items were not converted into other items. they remained the same "random items".

Report message to a moderator

Staff Sergeant
Re: Editor is not saving placed items[message #328133] Thu, 14 November 2013 11:23 Go to previous messageGo to next message
pheloncab is currently offline pheloncab

 
Messages:278
Registered:August 2004
Location: So. Cal. or texas
my first question has to be, are the random tables filled with correct items?
then I'd probably make sure all the items on the random table place correctly.


Report message to a moderator

Master Sergeant
Re: Editor is not saving placed items[message #328136] Thu, 14 November 2013 11:48 Go to previous messageGo to next message
cnagorneac is currently offline cnagorneac

 
Messages:190
Registered:April 2012
pheloncab
my first question has to be, are the random tables filled with correct items?
then I'd probably make sure all the items on the random table place correctly.

random tables are correct. Items can be placed.

Report message to a moderator

Staff Sergeant
Re: Editor is not saving placed items[message #328140] Thu, 14 November 2013 12:29 Go to previous messageGo to next message
Kriplo is currently offline Kriplo

 
Messages:256
Registered:February 2008
Location: Zagreb - Croatia
If still crash then is rather bad.
Don't have time right now to go deeply into those random items as work on other part of editor, already spent 3 hours on them and get nowhere, placed items remain random in game but couldn't crash mapeditor just for placing them :sick:

But when get time will see what is wrong with them in mapeditor.

Report message to a moderator

Master Sergeant
Re: Editor is not saving placed items[message #328711] Sat, 30 November 2013 01:18 Go to previous messageGo to next message
Kriplo is currently offline Kriplo

 
Messages:256
Registered:February 2008
Location: Zagreb - Croatia
From r6668 mapeditor should not crash anymore when placing random items, also game will now recognize and convert random item placed as world item or placed to merc inventory.

Report message to a moderator

Master Sergeant
Re: Editor is not saving placed items[message #328716] Sat, 30 November 2013 11:31 Go to previous message
Kriplo is currently offline Kriplo

 
Messages:256
Registered:February 2008
Location: Zagreb - Croatia
Compile r6668 map editor which can be downloaded from:
https://ja2svn.dyndns.org/source/ja2/branches/Kriplo/MapEditor_EN_Release.exe

Report message to a moderator

Master Sergeant
Previous Topic: How to disable debug mode on trunk version?
Next Topic: Two questions about the Editor
Goto Forum:
  


Current Time: Fri Apr 19 07:15:02 GMT+3 2024

Total time taken to generate the page: 0.02465 seconds