[Agent] Gallipoli Mod AAR

Please post here for questions and discussion about scenario, art and sound modding.

Moderator: doomtrader

User avatar
Magpius
Posts: 1748
Joined: Thu Sep 20, 2007 11:21 pm
Location: Melbourne, Australia

[Agent] Gallipoli Mod AAR

Post by Magpius »

Okay I'm going to journal how far I can get in creating a mod for this game.
By the end of this thread I hope to have a shareable scenario mod (not usually my strongpoint)
Step 1: Find a good map.

Image
Attachments
ScreenHunt..2823.08.jpg
ScreenHunt..2823.08.jpg (184.91 KiB) Viewed 1905 times

"I don't believe in reincarnation because I refuse to come back as a bug or as a rabbit". -New Order
User avatar
Magpius
Posts: 1748
Joined: Thu Sep 20, 2007 11:21 pm
Location: Melbourne, Australia

RE: [Agent] Gallipoli Mod AAR

Post by Magpius »

part of a larger map...
Image
(note the transparent layer background, (using GIMP))
Attachments
ScreenHunt..2823.12.jpg
ScreenHunt..2823.12.jpg (63.01 KiB) Viewed 1905 times

"I don't believe in reincarnation because I refuse to come back as a bug or as a rabbit". -New Order
User avatar
Magpius
Posts: 1748
Joined: Thu Sep 20, 2007 11:21 pm
Location: Melbourne, Australia

RE: [Agent] Gallipoli Mod AAR

Post by Magpius »

Place a hex grid over the lot and start counting tiles.
To determine the map size in the scenario editor.
Image
gives me a playing map of around 50x75 just under a km per hex.
Attachments
ScreenHunt..2823.14.jpg
ScreenHunt..2823.14.jpg (88.68 KiB) Viewed 1905 times

"I don't believe in reincarnation because I refuse to come back as a bug or as a rabbit". -New Order
User avatar
Magpius
Posts: 1748
Joined: Thu Sep 20, 2007 11:21 pm
Location: Melbourne, Australia

RE: [Agent] Gallipoli Mod AAR

Post by Magpius »

Open the editor.
Set map dimensions to 50x80.
Filling the map with ocean
Then click on create new scenario...
Image
Attachments
ScreenHunt..2823.39.jpg
ScreenHunt..2823.39.jpg (34.47 KiB) Viewed 1904 times

"I don't believe in reincarnation because I refuse to come back as a bug or as a rabbit". -New Order
User avatar
Magpius
Posts: 1748
Joined: Thu Sep 20, 2007 11:21 pm
Location: Melbourne, Australia

RE: [Agent] Gallipoli Mod AAR

Post by Magpius »

to place this in a new empty folder...


Image
Attachments
ScreenHunt..2823.40.jpg
ScreenHunt..2823.40.jpg (26.6 KiB) Viewed 1904 times

"I don't believe in reincarnation because I refuse to come back as a bug or as a rabbit". -New Order
User avatar
Magpius
Posts: 1748
Joined: Thu Sep 20, 2007 11:21 pm
Location: Melbourne, Australia

RE: [Agent] Gallipoli Mod AAR

Post by Magpius »

Only to get this...
Image
full text of error below.
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at ToFEdytor.Scenario.GenerateMapFile(String folder, Boolean newmap)
at ToFEdytor.Scenario.CreateNewScenario(String name, String author, Int32 a, Int32 b, Int32 type, String folder, String template)
at ToFEdytor.NewScenarioForm.CreateNewScenarioButton_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.239 (RTMGDR.030319-2300)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
Time Of Fury Editor
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/Slitherine/Time%20of%20Fury/Time%20of%20Fury%20Editor/Time%20of%20Fury%20Editor.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.235 built by: RTMGDR
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.236 built by: RTMGDR
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
Microsoft.Xna.Framework
Assembly Version: 4.0.0.0
Win32 Version: 4.0.20823.0 built by: xnabldr
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_32/Microsoft.Xna.Framework/v4.0_4.0.0.0__842cf8be1de50553/Microsoft.Xna.Framework.dll
----------------------------------------
Microsoft.Xna.Framework.Graphics
Assembly Version: 4.0.0.0
Win32 Version: 4.0.20823.0 built by: xnabldr
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_32/Microsoft.Xna.Framework.Graphics/v4.0_4.0.0.0__842cf8be1de50553/Microsoft.Xna.Framework.Graphics.dll
----------------------------------------
Accessibility
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.233 built by: RTMGDR
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
Attachments
ScreenHunt..2823.43.jpg
ScreenHunt..2823.43.jpg (57.09 KiB) Viewed 1906 times

"I don't believe in reincarnation because I refuse to come back as a bug or as a rabbit". -New Order
User avatar
doomtrader
Posts: 5319
Joined: Tue Jul 22, 2008 5:21 am
Location: Poland
Contact:

RE: [Agent] Gallipoli Mod AAR

Post by doomtrader »

Finally!!!!
User avatar
Magpius
Posts: 1748
Joined: Thu Sep 20, 2007 11:21 pm
Location: Melbourne, Australia

RE: [Agent] Gallipoli Mod AAR

Post by Magpius »

Files have been created in the folder.
but I can not load the scenario to edit.

Image
Attachments
ScreenHunt..2823.47.jpg
ScreenHunt..2823.47.jpg (70.25 KiB) Viewed 1904 times

"I don't believe in reincarnation because I refuse to come back as a bug or as a rabbit". -New Order
User avatar
Magpius
Posts: 1748
Joined: Thu Sep 20, 2007 11:21 pm
Location: Melbourne, Australia

RE: [Agent] Gallipoli Mod AAR

Post by Magpius »

When I try to load the 1915 Gallipoli scenario I get this...

Image
Full text below...
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.IO.EndOfStreamException: Unable to read beyond the end of the stream.
at System.IO.BinaryReader.ReadByte()
at ToFEdytor.Scenario.LoadScenario(String folder, Boolean mapLoad)
at ToFEdytor.WelcomeForm.LoadScenarioButton_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.239 (RTMGDR.030319-2300)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
Time Of Fury Editor
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/Slitherine/Time%20of%20Fury/Time%20of%20Fury%20Editor/Time%20of%20Fury%20Editor.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.235 built by: RTMGDR
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.236 built by: RTMGDR
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
Microsoft.Xna.Framework
Assembly Version: 4.0.0.0
Win32 Version: 4.0.20823.0 built by: xnabldr
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_32/Microsoft.Xna.Framework/v4.0_4.0.0.0__842cf8be1de50553/Microsoft.Xna.Framework.dll
----------------------------------------
Microsoft.Xna.Framework.Graphics
Assembly Version: 4.0.0.0
Win32 Version: 4.0.20823.0 built by: xnabldr
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_32/Microsoft.Xna.Framework.Graphics/v4.0_4.0.0.0__842cf8be1de50553/Microsoft.Xna.Framework.Graphics.dll
----------------------------------------
Accessibility
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.233 built by: RTMGDR
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
Attachments
ScreenHunt..2823.49.jpg
ScreenHunt..2823.49.jpg (55.38 KiB) Viewed 1904 times

"I don't believe in reincarnation because I refuse to come back as a bug or as a rabbit". -New Order
User avatar
Magpius
Posts: 1748
Joined: Thu Sep 20, 2007 11:21 pm
Location: Melbourne, Australia

RE: [Agent] Gallipoli Mod AAR

Post by Magpius »

I have reinstalled xna and repaired it.
I also installed the editor, now as a subdirectory within the time of fury folders, thinking it may have been a pathing issue.
All to no avail.
This scenario currently on hold.
until the editor is updated.

Image
I'm not [:@], just a little frustrated.
Attachments
ScreenHunt..2823.53.jpg
ScreenHunt..2823.53.jpg (100.22 KiB) Viewed 1905 times

"I don't believe in reincarnation because I refuse to come back as a bug or as a rabbit". -New Order
User avatar
Magpius
Posts: 1748
Joined: Thu Sep 20, 2007 11:21 pm
Location: Melbourne, Australia

RE: [Agent] Gallipoli Mod AAR

Post by Magpius »

[8|]
oh and could someone zip and upload the operation overlord scenario folder and post here please.
I tried opening and modifying the scenario, but killed it. It no longer opens and hangs the game.

There is no saveas in the editor file menu. (yes I should have copied and renamed first).
When you change the tile size of a map in an existing scenario, the change is not retained.

In retrospect I did get further with the 'pacific' editor, but that was on an older computer running xp.

"I don't believe in reincarnation because I refuse to come back as a bug or as a rabbit". -New Order
User avatar
Magpius
Posts: 1748
Joined: Thu Sep 20, 2007 11:21 pm
Location: Melbourne, Australia

RE: [Agent] Gallipoli Mod AAR

Post by Magpius »

What comes next is the laborious task of transposing, hex by hex, the composite map overlay with the map maker in the editor.

Image
I really like this map's colour palette.
While waiting for the editor issues, I think another mapskin for this is in order.
Attachments
ScreenHunt..2900.08.jpg
ScreenHunt..2900.08.jpg (104.51 KiB) Viewed 1908 times

"I don't believe in reincarnation because I refuse to come back as a bug or as a rabbit". -New Order
gwgardner
Posts: 7246
Joined: Fri Apr 07, 2006 1:23 pm

RE: [Agent] Gallipoli Mod AAR

Post by gwgardner »

overlord
Attachments
Overlord.zip
(630.16 KiB) Downloaded 35 times

Peter123
Posts: 203
Joined: Sat Feb 13, 2010 10:59 am

RE: [Agent] Gallipoli Mod AAR

Post by Peter123 »

Agent, do you run the editor as administrator?
I do, and I can load the scenario.
User avatar
Barthheart
Posts: 3080
Joined: Tue Jul 20, 2004 3:16 pm
Location: Nepean, Ontario

RE: [Agent] Gallipoli Mod AAR

Post by Barthheart »

ORIGINAL: Peter123

Agent, do you run the editor as administrator?
I do, and I can load the scenario.

Peter123 might be on to something here. I see above that you have ToF in the "Program Files (x86)" directory. Win 7 really doesn't like things being changed on the fly in this directory. Try reinstalling Tof just off the "C:\" direrctory or something like I use "C:\Games\Time of Fury".

Life is not a journey to the grave with the intention of arriving safely in a pretty & well preserved body,
but rather to skid in broadside, totally worn out & proclaiming "WOW, what a ride!"
User avatar
Magpius
Posts: 1748
Joined: Thu Sep 20, 2007 11:21 pm
Location: Melbourne, Australia

RE: [Agent] Gallipoli Mod AAR

Post by Magpius »

Thanks guys will try the directory swap.
Program run as administrator

"I don't believe in reincarnation because I refuse to come back as a bug or as a rabbit". -New Order
Peter123
Posts: 203
Joined: Sat Feb 13, 2010 10:59 am

RE: [Agent] Gallipoli Mod AAR

Post by Peter123 »

It seems a directory issue. When I try to save in your directory I cant load the scenario.
No need to reinstall ToF, just save your scenario in a desktop folder, that works for me.
User avatar
Magpius
Posts: 1748
Joined: Thu Sep 20, 2007 11:21 pm
Location: Melbourne, Australia

RE: [Agent] Gallipoli Mod AAR

Post by Magpius »

Reinstalled clean.
Still some serious issues. Can't change map size, once editing underway, but less crashes.
Will try the desktop folder option also. Thanks for the suggestions.

"I don't believe in reincarnation because I refuse to come back as a bug or as a rabbit". -New Order
User avatar
Magpius
Posts: 1748
Joined: Thu Sep 20, 2007 11:21 pm
Location: Melbourne, Australia

RE: [Agent] Gallipoli Mod AAR

Post by Magpius »

[:)]
far less crashing.
I've moved the scenario folder to the desktop.
I'm running the editor in admin mode.
but now some questions that may require version 2 of the editor.

Image
Bartek,
1. Could you explain the number range in random box, and what it defines.
2. How do I define a hex that can be amphibiously invaded? it may require a checkbox like railroads.
3. The beach terrain tile is on the others.png file, and controlled by the sprites_depth.csv within the mapskin file, how are the 6 beach tiles selected and placed on the map? Does every coastal edge automatically acquire a corresponding beach graphic?
Attachments
ScreenHunt..2921.25.jpg
ScreenHunt..2921.25.jpg (30.81 KiB) Viewed 1907 times

"I don't believe in reincarnation because I refuse to come back as a bug or as a rabbit". -New Order
User avatar
doomtrader
Posts: 5319
Joined: Tue Jul 22, 2008 5:21 am
Location: Poland
Contact:

RE: [Agent] Gallipoli Mod AAR

Post by doomtrader »

Let me try to answer those questions.
1. This number defines which gfx tile is displayed for this hex.
2. This should be ready after the weekend
3. IIRC the beach terrain is added automaticaly to each hex, so every coastal hex has got beach under it
Post Reply

Return to “Design and Modding”