Page 2 of 12

Posted: Fri Aug 12, 2011 4:56 pm
by Xerkis
I just scanned my PC – no settings.txt file to be found… and after I made sure I hit the “Quite” button as well.

Also, I have changed my campaign file and it comes up without any errors.

Posted: Fri Aug 12, 2011 10:22 pm
by El_Condoro
For now, the app will remember directories as long as you use the "Quit" button.......
Just confirming I was using the Quit button. No settings.txt file, either.

Posted: Fri Aug 12, 2011 11:51 pm
by mgarnett
El_Condoro wrote:
For now, the app will remember directories as long as you use the "Quit" button.......
Just confirming I was using the Quit button. No settings.txt file, either.
Ok, are you running the app from a directory contained in "program files"? If so, I will need to save the file somewhere different as the security features in Windows Vista or 7 won't allows writing to a folder in that path. If your stll using XP, can you let me know because that means it's a different problem.

Cheers

Mark

Posted: Sat Aug 13, 2011 12:01 am
by Xerkis
mgarnett wrote:
El_Condoro wrote:
For now, the app will remember directories as long as you use the "Quit" button.......
Just confirming I was using the Quit button. No settings.txt file, either.
Ok, are you running the app from a directory contained in "program files"? If so, I will need to save the file somewhere different as the security features in Windows Vista or 7 won't allows writing to a folder in that path. If your stll using XP, can you let me know because that means it's a different problem.

Cheers

Mark
Windows 7 and here is where i have mine placed.

C:\Users\Mark\Documents\My Games\Slitherine\Equipment Editor

Posted: Sat Aug 13, 2011 12:24 am
by El_Condoro
I have the editor files all in My docs\My games\Panzer Corps folder. Just checked - definitely no settings file of any sort there.

Posted: Sat Aug 13, 2011 3:17 am
by mgarnett
El_Condoro wrote:I have the editor files all in My docs\My games\Panzer Corps folder. Just checked - definitely no settings file of any sort there.
Thanks, I'll create the settings file during load rather than when quiting. I'll make some changes and post a new version. Are you guys able to confirm that the debug.txt file gets created? It gets created using the same procedure, so if see that but not the settings file then it will help to track down the cause.

Cheers

Mark

Posted: Sat Aug 13, 2011 3:25 am
by Xerkis
mgarnett wrote:
El_Condoro wrote:I have the editor files all in My docs\My games\Panzer Corps folder. Just checked - definitely no settings file of any sort there.
Thanks, I'll create the settings file during load rather than when quiting. I'll make some changes and post a new version. Are you guys able to confirm that the debug.txt file gets created? It gets created using the same procedure, so if see that but not the settings file then it will help to track down the cause.

Cheers

Mark
Yes sir, it does.
I deleted it -- opened the editor -- closed it -- debug file is back.
Hope it helps
:)

Posted: Mon Aug 15, 2011 10:10 am
by mgarnett
Thanks Xerkis, I'll have a look and get back to you.

Cheers

Mark

Posted: Mon Aug 15, 2011 2:31 pm
by Xerkis
mgarnett wrote:Thanks Xerkis, I'll have a look and get back to you.

Cheers

Mark
Sounds good.

As you know, anything I can do to help, just ask.
:)

Posted: Mon Aug 15, 2011 8:46 pm
by El_Condoro
mgarnett wrote:Are you guys able to confirm that the debug.txt file gets created? It gets created using the same procedure, so if see that but not the settings file then it will help to track down the cause.
Somehow missed this. Yes, the debug.txt file is created when the editor is opened. I had the folder open and could see it appear when the editor displayed.

Values not being saved

Posted: Tue Aug 16, 2011 3:59 pm
by shinyhalo
Editor in this directory C:\Users\Z\Documents\Editor
copied equipment.pzeqp into same directory to test it

opened PzCEdit.exe
opened equipment.pzeqp
just clicked "ok" when it asks me to choose graphics directory

selected country germany
naval unit destroyer
changed Range to 2
saved
selected schnellbotte
selected destroyer
Range still 0

Please explain how to permanently change unit stats.
Thanks

Posted: Tue Aug 16, 2011 6:11 pm
by berndN
Maybe just as a tip. Use LINQ and requery the data via queries when selecting different units. Here's a quick example which might help: http://msdn.microsoft.com/en-us/library/bb397914.aspx
Advantage is to use XML to save and later reload.
For modding while many prefer ascii files, XML files are easier to read and can handle much more data base stuff IMHO :)

But thanks for the work on the Editor. I had also the idea to start working on such a 'beast' but was happy to see that someone else started!
Hopefully the creators will change the way the main files are handled to make it easier to create new campaigns without needing to 'backup/protect' the games core files.

Re: Values not being saved

Posted: Fri Aug 19, 2011 12:40 pm
by mgarnett
shinyhalo wrote:Editor in this directory C:\Users\Z\Documents\Editor
copied equipment.pzeqp into same directory to test it

opened PzCEdit.exe
opened equipment.pzeqp
just clicked "ok" when it asks me to choose graphics directory

selected country germany
naval unit destroyer
changed Range to 2
saved
selected schnellbotte
selected destroyer
Range still 0

Please explain how to permanently change unit stats.
Thanks
Hi Shinyhalo,

To save a unit "over the top" of the currently selected unit, just change the stats to whatever you like and then click the "Commit Unit" button. To add a new unit at the end of the database, just change the currently selected unit to whatever stats you like then select "Add Unit"

Cheers

Mark

Posted: Fri Aug 19, 2011 12:43 pm
by mgarnett
berndN wrote:Maybe just as a tip. Use LINQ and requery the data via queries when selecting different units. Here's a quick example which might help: http://msdn.microsoft.com/en-us/library/bb397914.aspx
Advantage is to use XML to save and later reload.
For modding while many prefer ascii files, XML files are easier to read and can handle much more data base stuff IMHO :)

But thanks for the work on the Editor. I had also the idea to start working on such a 'beast' but was happy to see that someone else started!
Hopefully the creators will change the way the main files are handled to make it easier to create new campaigns without needing to 'backup/protect' the games core files.
Thanks for the tip berndN.

I'm actually using this project to teach myself dotNet. I'm a Delphi developer mainly, so the features of the dotNET environment are still pretty new to me. If the source data was in XML, I would certainly have kept it that way, but as it is in plain text, I made the decision to store information internally as plain text as well.

Cheers

Mark

Posted: Fri Aug 19, 2011 1:04 pm
by Xerkis
How’s the campaign editor coming?
:)

Posted: Fri Aug 19, 2011 1:05 pm
by mgarnett
New version uploaded, please see first post.

Cheers

Mark

Posted: Fri Aug 19, 2011 1:06 pm
by mgarnett
Xerkis wrote:How’s the campaign editor coming?
:)
Hi Xerkis,

I hope to have it finished this weekend assuming I don't get roped into playing Barbies with my daughter!!!

Cheers

Mark

Posted: Fri Aug 19, 2011 1:08 pm
by Xerkis
mgarnett wrote:New version uploaded, please see first post.
You must have just done that. It was .6 when I came in here.... True I came in to this thread walked away for awhile, came back and posted.
:lol:

Posted: Fri Aug 19, 2011 1:15 pm
by Xerkis
Settings file is now there for me.
Fixed.
:D

Posted: Fri Aug 19, 2011 1:28 pm
by VPaulus
mgarnett wrote:
Hi Xerkis,

I hope to have it finished this weekend assuming I don't get roped into playing Barbies with my daughter!!!

Cheers

Mark
Don't forget to bring your Action Man (European version of G.I. Joe). I've always loved my "Deep Sea Diver" suit. He looked wonderful in my bathtub filled with water. His voice was never the same after that, but he looked nice.
http://www.actionmanhq.co.uk/pages/sold ... diver.html