Matrix Games Forums

New Screenshots for Pike & ShotDeal of the Week Command: Modern Air/Naval Operations WOTYCommand: Modern Air/Naval Operations WOTY is now available!Frontline : The Longest Day Announced and in Beta!Command gets Wargame of the Year EditionDeal of the Week: Pandora SeriesPandora: Eclipse of Nashira is now availableDistant Worlds Gets another updateHell is Approaching Deal of the Week Battle Academy
Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Editor freezes

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> Advanced Tactics Series >> Advanced Tactics Support >> Editor freezes Page: [1]
Login
Message << Older Topic   Newer Topic >>
Editor freezes - 3/15/2013 11:23:48 PM   
ernieschwitz

 

Posts: 1563
Joined: 9/15/2009
From: Denmark
Status: online
I´ve made an event, and i wanted to change a textmessage in it.

I go into the editor, choose my event, and choose the line where the event is located, press the button to change the text for the event, no problem. I edit the event, add some text

"(Allies of [regimename][tempvar]7[/tempvar][/regimename] are now at war with [regimename][tempvar]4[/tempvar][/regimename] as well)"

And when i press the Ok button the editor simply freezes.

At first I thought it was because i had deleted a line, later in the code, but that wasn´t it. Then i thought it might be because I was using spotify to give myself a tune to listen to while editing, but that wasn´t it either.

I have a scenario file, that will reproduce the crash each time I use it, in the described manner.



< Message edited by ernieschwitz -- 3/15/2013 11:24:21 PM >
Post #: 1
RE: Editor freezes - 3/15/2013 11:39:10 PM   
ernieschwitz

 

Posts: 1563
Joined: 9/15/2009
From: Denmark
Status: online
This is with version 2.14 installed...

(in reply to ernieschwitz)
Post #: 2
RE: Editor freezes - 3/16/2013 12:03:47 AM   
ernieschwitz

 

Posts: 1563
Joined: 9/15/2009
From: Denmark
Status: online
I tried a few goofy things to see if i could fix it.

Among others importing the event is not a fix. Reinstalling 2.14 is not a fix. Even an empty file with the event imported is not a fix.

(in reply to ernieschwitz)
Post #: 3
RE: Editor freezes - 3/16/2013 12:20:32 AM   
ernieschwitz

 

Posts: 1563
Joined: 9/15/2009
From: Denmark
Status: online
I even tried this:

Deleted the original ExecMessage line and replaced it with a new one... using the old text that i had copied and pasted...

This is what i pasted:
[regimename][tempvar]4[/tempvar][/regimename] declares war on [tempstring]0[/tempstring]!

[regimename][tempvar]7[/tempvar][/regimename] has sworn to protect

[tempstring]0[/tempstring]!

[regimename][tempvar]4[/tempvar][/regimename] is now at war with

[regimename][tempvar]7[/tempvar][/regimename]!

(Allies of [regimename][tempvar]7[/tempvar][/regimename] are now at war with

[regimename][tempvar]4[/tempvar][/regimename] as well).

Caused the system to freeze as well....

< Message edited by ernieschwitz -- 3/16/2013 12:22:12 AM >

(in reply to ernieschwitz)
Post #: 4
RE: Editor freezes - 3/16/2013 12:25:58 AM   
ernieschwitz

 

Posts: 1563
Joined: 9/15/2009
From: Denmark
Status: online
In fact, just pasting that into a totally new event, made just by loading up the editor and selecting an event, making a single line containing that exact same ExecMessage does the same thing... it freezes.

(in reply to ernieschwitz)
Post #: 5
RE: Editor freezes - 3/16/2013 12:43:57 AM   
ernieschwitz

 

Posts: 1563
Joined: 9/15/2009
From: Denmark
Status: online
It seems, i am coming up against a text length limit of some kind. I have tried just doodling in some random characters at the end of my original text, and it still freezes. However, short messages are no problem...

(in reply to ernieschwitz)
Post #: 6
RE: Editor freezes - 3/16/2013 1:44:16 AM   
lancer

 

Posts: 631
Joined: 10/18/2005
Status: offline
Hi Ernieschwitz,

The editor has a few known(?) kinks in it that will crash it consistently.

Nesting regime and tempvar's as above will do it. There are a few others that occur within message dialogues. I make a habit of saving the game file before doing anything tricky within a dialogue.

One way to tackle the nesting of regime/tempvars is to write it out in a seperate text editor and then copy/paste directly into the dialogue screen. Sometimes works, sometimes doesn't.

Heavy Stringlist manipulation will also crash the editor in short order. Save before you tweak here as well.

Once you know where the land mines are they are easy to avoid or deal with. Overall it's pretty robust.

Cheers,
Lancer

(in reply to ernieschwitz)
Post #: 7
RE: Editor freezes - 3/16/2013 2:16:43 AM   
ernieschwitz

 

Posts: 1563
Joined: 9/15/2009
From: Denmark
Status: online
Hi Lancer,

Thanks for the response. I was fearing this. I really hope Vic has a solution, as this is bugging the crap out of me... :)

(in reply to lancer)
Post #: 8
RE: Editor freezes - 3/16/2013 3:24:39 AM   
ernieschwitz

 

Posts: 1563
Joined: 9/15/2009
From: Denmark
Status: online
I think I found a workaround.... making a long tempstring, and simply just using that instead... So that the actual ExecMessage becomes "[tempstring]1[/tempstring]"... or something like that.

(in reply to ernieschwitz)
Post #: 9
RE: Editor freezes - 3/16/2013 10:24:45 AM   
Vic


Posts: 3655
Joined: 5/17/2004
Status: offline
Send me the scenario file please. To vic@xs4all.nl. I'll take a look. I couldnt reproduce by using that text string, it must be something else. Any other issues (lancer) that can be pinpointed i would like to get as well.

I hope to do a new (pre) beta patch within a few weeks to port the fix for the Win8/Win7KB2670838patch that hit mainly dc1. And i could take these issues along.

Best,
Vic

_____________________________

Victor Reijkersz Designs
www.vrdesigns.nl

(in reply to ernieschwitz)
Post #: 10
RE: Editor freezes - 3/20/2013 7:06:07 AM   
lancer

 

Posts: 631
Joined: 10/18/2005
Status: offline
Hi Vic,

I consistently have the same problem with nesting [regimevar][tempvar]... as ernie above.

Another aspect of message dialogues that usually crash the editor is when you edit an existing dialogue. Deleting text and var's in the middle of message and replacing it with new of the same, is a prime crasher. Doesn't seem to be related to the amount of text in the dialogue although it does appear to be dependent on the amount of text after the point where you delete. The more text after the deletion point the more likely it is to crash.

Stringlists, in the editor, I find to be O.K but very delicate. Once you start fiddling around you can easily induce a crash although specific instances of that are difficult to pin down. Deleting things is usually the reason, whether that is text within a stringlist field or columns (not so much rows). Overall it's manageable though.

On a related note I've found that stringlists go completely out of scope (inaccessible) if you add/remove units in the middle of a procedure. Only happens after the add/remove, not before. I can workaround this by hiving off the add/remove part into a sub-procedure (calling it from within the main procedure) which overcomes the problem.

I suspect that adding/removing units not only resets the unit numbering but it also affects other, related memory registers. Not a big deal as easily dealt with but worth a mention.

Interestingly stringlists don't seem to work in a called sub-procedure, only in the main procedure.

[edit] if you are planning on doing a patch would it be possible to include a gamevar that indicates if the 'higher production cost' option has been selected? This option changes all the calculations for my Enhanced Resource Mod and I've currently got no way of telling whether it has been selected or not. Not a great drama as only one person has picked it up but if it's easy to do then it would be nice to have. [/edit]

Cheers,
Lancer

< Message edited by lancer -- 3/20/2013 7:34:56 AM >

(in reply to Vic)
Post #: 11
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Advanced Tactics Series >> Advanced Tactics Support >> Editor freezes Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

0.070