home

Author Topic: Report Generator updated  (Read 15480 times)

Offline Deadshot

  • Posts: 94
    • View Profile
Report Generator updated
« on: February 20, 2007, 06:14:11 PM »
I've been sitting on a number of important updates for the last week or so, I decided I better release them.


http://heraldsoftethys.com/fantasy/resources/battlereport.zip

I really need to add a FAQ or help system...I also really need another 12 hours in the day.

Critical Changes:
The zip file now includes three items: The exe, Data folder, and Images folder.  The Data folder is used to store your settings.  I have hardcoded the program to look in the Data folder located in the same directory as the exe, so renaming or moving the folder will cause the settings not to work.  Some images are also hardcoded to pull form the images folder located in the same directory as the exe, so don't move or rename this folder either.

Notable changes:
- Right-click menu has been added.  All the menu and toolbar buttons have been built into a right-click menu, so just right-click on the desired unit and make whatever change you like.
- Changable unit size.  I added the model count property to the unit options.  Now you can update your unit correctly---I just realized this was only added to the right-click menu and will be added in a future update as a toolbar and menu item.
- In the above image you will notice each unit/terrain image is enclosed in a region.  Each region has either a + or - sign at the top-left corner of the region.  Clicking the +/- will expand, collapse the region.  I've found it useful to add all my most used units to the custom region and collapse everything else.  The program will save whatever the state (expanded/collapsed) of the regions are when you close the program.
- When you add a custom unit, you will be prompted to add this unit to the custom base sizes area.  If you add the unit, it will be available for selection during this and all subsequent sessions.
- You will notice a new menu item---Settings.  In here you can set the default table width/height and image options.  If the "Prompt to resize image" option is checked, a image settings form will display every time you save the image; otherwise, it will use the settings selected on the settings form.
- All images are now saved as a jpg.  This considerably reduces the file size.  If you choose to save the image out in a smaller format, the image size will reduce even more.  One downside is saving a resized image increasing the "image distortion problem".  Two ways to avoid this.  1 - use the settings and don't prompt each time the image is saved.  2 - Move any windows overlapping the image so they are no longer overlapping the image.
- I modified the two hill type terrain images so they can be recolored.  Now your hill can also be a lake.
- Add a 1" grid

Upcoming changes---things I didn't have time for:
- Flame template image
- Better charge/retreat images (I currently use the same image for both)
- Line drawing tool
- Custom skirmish units
- Custom grid size
- Feedback on unit placement/displacement (something to display the corrdinates before and during movement)
- Ability to select multiple units at once

Again feedback is welcome.

Offline rufus sparkfire

  • Global Moderator
  • Posts: 1302
    • View Profile
Re: Report Generator updated
« Reply #1 on: February 21, 2007, 06:33:50 AM »
This is really great! Thanks!

Offline Patch

  • Posts: 840
  • What would Chuck Norris do?
    • View Profile
Re: Report Generator updated
« Reply #2 on: February 21, 2007, 08:00:18 AM »
It says it requires a DLL called MSCOREE.DLL?!
Heaven doesn't want me, and Hell is afraid I'll take over!

Offline nico

  • Posts: 109
    • View Profile
Re: Report Generator updated
« Reply #3 on: February 21, 2007, 08:23:30 AM »
It says it requires a DLL called MSCOREE.DLL?!

Same for me... The screenshot looks sweet!

Offline ProFF7

  • Posts: 297
  • Im from Spain, so plz excuse my english >_<
    • View Profile
Re: Report Generator updated
« Reply #4 on: February 21, 2007, 10:38:04 AM »
i love the new features  :icon_biggrin:

specially the changue size of units, makes it much easier to represent combat losses.

the custom bases is great too, really good idea


however, im getting trouble with the resizing of images.



this is what i get when i enter the settings option, and press ok (regardless if i changue anything or not)


Quote
It says it requires a DLL called MSCOREE.DLL?!

not sure what that means, but some users could not execute the program if they didnt have the Microsoft Framework Package. (can be downloaded free from the microsoft update page). hope that helps
There is no problem that cannot be solved with Cannons

Offline Deadshot

  • Posts: 94
    • View Profile
Re: Report Generator updated
« Reply #5 on: February 21, 2007, 10:44:11 AM »

Offline Deadshot

  • Posts: 94
    • View Profile
Re: Report Generator updated
« Reply #6 on: February 21, 2007, 10:50:31 AM »
i love the new features  :icon_biggrin:

however, im getting trouble with the resizing of images.



this is what i get when i enter the settings option, and press ok (regardless if i changue anything or not)

Sorry about that.  I didn't include the Data folder in the zip file.  Just create a new folder titled "Data" in the same location as the exe.  I have updated the zip file to include this folder.

Offline sameth

  • Posts: 5
    • View Profile
Re: Report Generator updated
« Reply #7 on: February 21, 2007, 05:11:00 PM »
Love that programme. Will post up a report as soon as I fight a few battles.Great work :eusa_clap:

Offline Atchman

  • Global Moderator
  • Posts: 4109
    • View Profile
    • http://www.warhammer-empire.com
Re: Report Generator updated
« Reply #8 on: March 08, 2007, 07:47:16 AM »
The old version worked for me, this new version is giving me an error and won't launch.  I've downloaded the net framework thing and it didn't help.  I can't even get it to open to look at it :(
"Do not gloat when your enemy falls; when he stumbles, do no let your heart rejoice"

Offline ProFF7

  • Posts: 297
  • Im from Spain, so plz excuse my english >_<
    • View Profile
Re: Report Generator updated
« Reply #9 on: March 08, 2007, 09:12:00 AM »
good thing you made this sticky  :icon_biggrin:


im getting almost same problem as Atchman. i could open it for 2 or 3 times, then all of a sudden, it started giving me this error:



so i can only use the older version for now :S
There is no problem that cannot be solved with Cannons

Offline Deadshot

  • Posts: 94
    • View Profile
Re: Report Generator updated
« Reply #10 on: March 09, 2007, 10:42:24 AM »
good thing you made this sticky  :icon_biggrin:


im getting almost same problem as Atchman. i could open it for 2 or 3 times, then all of a sudden, it started giving me this error:



so i can only use the older version for now :S
Sorry about the errors.  Please answer a few questions to help me debug the problem.

Is the error generated when you open the application?
Can you open/run the application, but not open a saved report?

The only code I run when opening the application is to read the settings.xml file.  If you are getting the error/exception when opening the application, something must have happened with the settings file.  Delete the settings file and try again.  If you know what you did (added a custom unit, changed the settings, etc) before the error started, let me know.

Other things to think about.  You should have two folders located in the same directory as the exe file.  The data folder (this is where the settings.xml and any reports/images are saved), and the images folder (this is where pre-made images are stored and read from).

Thanks

Offline ProFF7

  • Posts: 297
  • Im from Spain, so plz excuse my english >_<
    • View Profile
Re: Report Generator updated
« Reply #11 on: March 09, 2007, 01:26:16 PM »
i tried deleting the settings file, and voila, its working again. you were right.

*debugging info

i was getting the error when trying to initialize the application. it didnt start at all, just gave me that message.

last thing i did before the program failing to initialize, was mess a little with custom units, and try to save a re-sized image. (which i couldnt.)

two last things. i could finally save resized images, but for some reason, when trying to save images using percentage of original, no matter what number i input, it saves it 100% (original size)

oh, and im getting some weird thing with chariot-sized bases



when i save my army deployment as xml, then load it, chariot-sized bases seem to appear as having double file size as you can see  :icon_eek:


thats it for now. keep us informed on updates  :icon_biggrin:

 
There is no problem that cannot be solved with Cannons

Offline Calvin

  • Administrator
  • Posts: 4031
  • Toronto, Canada
    • View Profile
    • CalvinWinter.net
Re: Report Generator updated
« Reply #12 on: March 10, 2007, 01:54:13 AM »
Errors aside, this program looks pretty good. I haven't tried the older version, but I'll probably download this over the weekend and give it a whirl. 8-)
Quote from: Rufas the Eccentric
Remember this every one, when in trouble just screem, CALVIN!
Quote from: Eight
I'd pay an extra 15 points or so to be able to take the engineer out back and shoot him.

Offline Elieress

  • Posts: 390
  • Slaanesh.. Just a painting project... I promise...
    • View Profile
Re: Report Generator updated
« Reply #13 on: March 12, 2007, 04:13:54 AM »
Its a bit difficult to debug without the sourcecode, but the program fails immidiately when run first time (and every time there after) using the code in the current zip file.

The following is a dissasembly of the code:
Code: [Select]
00000000  push        ebp 
00000001  mov         ebp,esp
00000003  sub         esp,7Ch
00000006  push        edi 
00000007  push        esi 
00000008  push        ebx 
00000009  mov         esi,ecx
0000000b  lea         edi,[ebp-7Ch]
0000000e  mov         ecx,19h
00000013  xor         eax,eax
00000015  rep stos    dword ptr es:[edi]
00000017  mov         ecx,esi
00000019  mov         dword ptr [ebp-8],0
00000020  mov         dword ptr [ebp-14h],ecx
00000023  mov         dword ptr [ebp-18h],edx
00000026  mov         dword ptr [ebp-1Ch],0
0000002d  mov         dword ptr [ebp-20h],0
00000034  mov         dword ptr [ebp-24h],0
0000003b  mov         dword ptr [ebp-28h],0
00000042  mov         dword ptr [ebp-2Ch],0
00000049  nop             
0000004a  nop             
0000004b  mov         ecx,dword ptr [ebp-18h]
0000004e  cmp         dword ptr [ecx],ecx
00000050  call        FFFFEA70

The exception occurs at  0000004e (null pointer exception)

Looking forward to testing your fine initiative...  :icon_biggrin:

If the Settings XML file is deleted, the program opens without problems. However when a new XML file is created, the program fails again.
Original XML file:
Code: [Select]
<?xml version="1.0" standalone="yes"?>
<Settings>
  <Settings>
    <TableHeight>4</TableHeight>
    <TableWidth>6</TableWidth>
    <Resize>True</Resize>
    <ImageWidth>0</ImageWidth>
    <ImageHeight>0</ImageHeight>
    <_x0032_0x20Expanded>+</_x0032_0x20Expanded>
    <_x0032_5x25Expanded>+</_x0032_5x25Expanded>
    <_x0032_5x50Expanded>+</_x0032_5x50Expanded>
    <OtherExpanded>+</OtherExpanded>
    <CustomExpanded>+</CustomExpanded>
    <TerrainExpanded>+</TerrainExpanded>
  </Settings>
</Settings>
« Last Edit: March 12, 2007, 04:18:58 AM by Elieress »
Elieress... Just an old RPG name that got stuck to most of my online profiles...

CPH denmark

Offline Deadshot

  • Posts: 94
    • View Profile
Re: Report Generator updated
« Reply #14 on: March 12, 2007, 10:19:04 AM »
Thanks for the feeback.  Special thanks to Elieress for the detailed information.  I will perform some additional testing with that data and add some better error handling.

Offline Powder Monkey

  • Posts: 630
  • OhohOH Aah AAAHH!!
    • View Profile
Re: Report Generator updated
« Reply #15 on: March 15, 2007, 10:27:45 AM »
 :Ohmy:

Ooopsy: The program is not downloadable anymore, the account seems to have expired on march 8th. Where can I still access it or could you please activate the site again / send it to me via email?

You would make me a very happy monkey!

PM
I'm pro-monkey. Anyone who isn't is evil.

Offline Max Hardenbrook

  • Posts: 1
    • View Profile
Re: Report Generator updated
« Reply #16 on: March 15, 2007, 05:40:50 PM »
I too would like to get my hands on an install of this.  Does someone have the files that they can email?

Offline Deadshot

  • Posts: 94
    • View Profile
Re: Report Generator updated
« Reply #17 on: March 16, 2007, 08:27:33 AM »
:Ohmy:

Ooopsy: The program is not downloadable anymore, the account seems to have expired on march 8th. Where can I still access it or could you please activate the site again / send it to me via email?

You would make me a very happy monkey!

PM
Sorry about that.  My domain expired and is being renewed.  The site should be back up in the next few days.

Offline Deadshot

  • Posts: 94
    • View Profile
Re: Report Generator updated
« Reply #18 on: March 16, 2007, 05:49:52 PM »
My website is back up and running  :icon_biggrin: so the download is once again available.

Offline Atchman

  • Global Moderator
  • Posts: 4109
    • View Profile
    • http://www.warhammer-empire.com
Re: Report Generator updated
« Reply #19 on: March 22, 2007, 05:59:17 AM »
I can't seem to change my model count.  Also the HML code is still buggy. 
"Do not gloat when your enemy falls; when he stumbles, do no let your heart rejoice"

Offline Deadshot

  • Posts: 94
    • View Profile
Re: Report Generator updated
« Reply #20 on: March 22, 2007, 12:58:07 PM »
I can't seem to change my model count.  Also the HML code is still buggy. 
Will you email the xml file to heraldsoftethys@hotmail.com

For the model count, is this not working for any units?  If it's just one unit, try re-adding the unit; otherwise, zip up the exe you are running and email that to me also.  I will compare it against the exe I am using.

Thanks

Offline Wyzer1

  • Posts: 3281
  • ^My Pic - Stuff I say ->
    • View Profile
Re: Report Generator updated
« Reply #21 on: March 24, 2007, 03:38:09 PM »
Wow, this program is awesome. Something during your program load/program exit code is screwed up though, because everytime I quit and reload I have to delete the settings file in order to open it. Otherwise, very cool program.

P.S. What did you write it in? And you wouldn't be willing to share the source would ya? (I just want some parts as examples of how to do things for a different project)

If not thats cool, I understand. Sweet program anyways!
Has anyone really been far even as decided to use even go want to do look more like?

Offline Deadshot

  • Posts: 94
    • View Profile
Re: Report Generator updated
« Reply #22 on: March 27, 2007, 09:27:48 AM »
Wow, this program is awesome. Something during your program load/program exit code is screwed up though, because everytime I quit and reload I have to delete the settings file in order to open it. Otherwise, very cool program.

P.S. What did you write it in? And you wouldn't be willing to share the source would ya? (I just want some parts as examples of how to do things for a different project)

If not thats cool, I understand. Sweet program anyways!
It's written in VB.Net and I'd be happy to send you the source code as long as you submit any fixes enhancements you make to me.  Give me the email address you'd like the files sent to.

Offline Wyzer1

  • Posts: 3281
  • ^My Pic - Stuff I say ->
    • View Profile
Re: Report Generator updated
« Reply #23 on: March 27, 2007, 03:36:55 PM »
Awesome, my email is:   wyzer1@wyzetech.com

Dude, you rock. And no problem with sending you stuff I do. I just wanted to use it for some learning purposes as well as (if I ever get around to it) expanding.


I know c# fairly well, and have devled slightely into vb.net, so I am familiar with the .NET platform. Nice to see I am not the only code-monkey that plays warhammer!
Has anyone really been far even as decided to use even go want to do look more like?

Offline tixed

  • Posts: 128
    • View Profile
Re: Report Generator updated
« Reply #24 on: April 15, 2007, 02:02:11 AM »
Nice to see I am not the only code-monkey that plays warhammer!
Nice for me too. =) C++\C#
There was an idea of creating program like these, but I just can't do all the work alone, and studying is hard too... :(
AMEN! (c) Paladin Alexander Anderson, XIIIst Vatican Division "Iskariots"