Another Character Generator

By OggDude, in Star Wars: Edge of the Empire RPG

Oggy,

the issue I had before,(Exeption thrown when trying to modify certain pieces of equipment) I have managed to find reduce the cause down to the Data that comes with 1.6 and 1.6.1. I discovered this by copying the data from 1.5 into the data location of 1.6.1 and when I went to modify the different items it did not have an exception. I haven't figured out witch file in that directory is the cause of the problem yet though.

Edited by SilindeT

Oggy,

the issue I had before,(Exeption thrown when trying to modify certain pieces of equipment) I have managed to find reduce the cause down to the Data that comes with 1.6 and 1.6.1. I discovered this by copying the data from 1.5 into the data location of 1.6.1 and when I went to modify the different items it did not have an exception. I haven't figured out witch file in that directory is the cause of the problem yet though.

I just haven't been able to reproduce it. I tried the two pieces of armor you mentioned, but they worked for me.

Thanks Oggy,

I see what you meant about it showing up as stored equipment on the print out. I was requesting for a way to see it easily in the GM Tools when viewing a ship. Thank you for the wonderful tools and excellent support.

When editing a character in a group with the GM tool open, the GM tool will crash.

Oggy,

the issue I had before,(Exeption thrown when trying to modify certain pieces of equipment) I have managed to find reduce the cause down to the Data that comes with 1.6 and 1.6.1. I discovered this by copying the data from 1.5 into the data location of 1.6.1 and when I went to modify the different items it did not have an exception. I haven't figured out witch file in that directory is the cause of the problem yet though.

I just haven't been able to reproduce it. I tried the two pieces of armor you mentioned, but they worked for me.

OK I figured out what is happening. I went through file by file trying to figure this out. The file TIE_BR Boarding Shuttle.xml that is packaged with 1.6 and 1.6.1 is different from 1.5 in two ways.

source

&

SensorRangeValue

I changed the source to "User Data" and it doesn't crash anymore. I'm still not sure why that was causing it to crash when trying to Modify 3 pieces of armor and some weapons (those were all I was looking at when I found it), but it did. I reproed this on multiple machines (5) windows 7 and 10. I'm more than willing to help troubleshoot and fix this and other problems.

Edited for further analysis:

After more testing I am finding that any item with a source tag in the XML crashes, every item without the source tag opens just fine. But changing that one file I listed before seems to fix all of them.

Edited by SilindeT

The Sensor Scrambler vehicle attachment currently seems to be listed as an armor attachment.

**** you!

You made me install WINE on my MacBook just for this app. I hope you are happy now. (I am) :)

Thank you oggy for this awesome tool, but I have a problem. Some objects are not showing up for me. Like some images and words such as this . It makes the program almost unusable. I have looked for a solution, but can't seem to find one. Does anyone have a solution for this? Sorry if this has been asked and solved before, but I need this working.

Oggy,

the issue I had before,(Exeption thrown when trying to modify certain pieces of equipment) I have managed to find reduce the cause down to the Data that comes with 1.6 and 1.6.1. I discovered this by copying the data from 1.5 into the data location of 1.6.1 and when I went to modify the different items it did not have an exception. I haven't figured out witch file in that directory is the cause of the problem yet though.

I just haven't been able to reproduce it. I tried the two pieces of armor you mentioned, but they worked for me.

OK I figured out what is happening. I went through file by file trying to figure this out. The file TIE_BR Boarding Shuttle.xml that is packaged with 1.6 and 1.6.1 is different from 1.5 in two ways.

source

&

SensorRangeValue

I changed the source to "User Data" and it doesn't crash anymore. I'm still not sure why that was causing it to crash when trying to Modify 3 pieces of armor and some weapons (those were all I was looking at when I found it), but it did. I reproed this on multiple machines (5) windows 7 and 10. I'm more than willing to help troubleshoot and fix this and other problems.

Edited for further analysis:

After more testing I am finding that any item with a source tag in the XML crashes, every item without the source tag opens just fine. But changing that one file I listed before seems to fix all of them.

Found it! I had added a feature to the source control that, if you selected a real source, it would automatically unselect the "User Data" source. However... it wasn't verifying that a "User Data" source actually existed :) If you had never added anything, or if you added items only to existing sources, you'd get that error.

Anyway, it was a simple fix, and an error that I shouldn't have made. Next release.

In the mean time, just add an item with a source of "User Data" and the problem will go away.

The Sensor Scrambler vehicle attachment currently seems to be listed as an armor attachment.

That's from the Spark of Rebellion import. Must have been an oversight by the Rancor team. I'll fix it and re-create the data set for the next release.

**** you!

You made me install WINE on my MacBook just for this app. I hope you are happy now. (I am) :)

Out of curiosity, do the descriptions show up at all? I'm using the web control to display descriptions, and I don't think it's a native .NET control.

**** you!

You made me install WINE on my MacBook just for this app. I hope you are happy now. (I am) :)

Out of curiosity, do the descriptions show up at all? I'm using the web control to display descriptions, and I don't think it's a native .NET control.

Give me a test. What should I select and what should I see?

**** you!

You made me install WINE on my MacBook just for this app. I hope you are happy now. (I am) :)

Out of curiosity, do the descriptions show up at all? I'm using the web control to display descriptions, and I don't think it's a native .NET control.

Give me a test. What should I select and what should I see?

Pretty much anything that displays a description. You can select an item in the Equipment pane and you should get a description of it. Moralities, Obligation and Duty, Backgrounds, they all display descriptions. If you haven't edited them, they should be in the form of a title, plus "Please see page xxx of the xxx book for details". If you see odd blank spaces in the panes and no descriptions, then it's not working.

How is this?

https://www.dropbox.com/s/5cc7es4lio4zn85/ogg1.png?dl=0

https://www.dropbox.com/s/nbubutemeb56gbh/ogg2.png?dl=0

I didn't test every single screen, but it looks like it's working?

It's working more than I thought it would. The web control seems to be working, but not the style sheets, nor the fonts, colors, and more than likely, the dice and symbol images. That's actually understandable, since I'm accessing them as classic Windows embedded resources, rather than .NET resources. And that's because it's a limitation of how the web browser control accesses external files as resources (.NET resources aren't supported, only old-style resources). But yeah, not bad considering. What do the printed sheets look like?

Haven't tried printing yet. Sorry. Will report when I do.

Hopefully version 2.0 will be friendlier to cross platform usage? :)

When I update it, which files/folders do I combine/replace?

When I update it, which files/folders do I combine/replace?

Just uninstall. then do a web install and you will no longer have to worry about this.

When I update it, which files/folders do I combine/replace?

Just uninstall. then do a web install and you will no longer have to worry about this.

I have no clue what that is. I'm not very good with computers.

Edited by John1701

So I am currently using an old laptop (win8) with .NET 4.6, and I keep running into the error below. However it only happens when I try to modify (in GMtools) certain pieces of gear. I think it is the same as discussed on the previous page but I not sure. The error comes up on unmodified items and items that I have changed/modified. Help?

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at SWCharGen.SourceControl.cbcSource_CheckBoxCheckedChanged(Object sender, EventArgs e)
at SWCharGen.CheckBoxComboBox.OnCheckBoxCheckedChanged(Object sender, EventArgs e)
at SWCharGen.CheckBoxComboBox.Items_CheckBoxCheckedChanged(Object sender, EventArgs e)
at SWCharGen.CheckBoxComboBoxItemList.OnCheckBoxCheckedChanged(Object sender, EventArgs e)
at SWCharGen.CheckBoxComboBoxItemList.item_CheckedChanged(Object sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Windows.Forms.CheckBox.OnCheckedChanged(EventArgs e)
at SWCharGen.CheckBoxComboBoxItem.OnCheckedChanged(EventArgs e)
at System.Windows.Forms.CheckBox.set_CheckState(CheckState value)
at System.Windows.Forms.CheckBox.set_Checked(Boolean value)
at SWCharGen.SourceControl.SetSources(CharData data, String defaultSource, DataItem item)
at SWCharGen.frmAddArmor.SetKey(DataItem existingItem, String newKey)
at SWCharGen.frmAddArmor.GetArmor(CharData myData, IWin32Window parent, String newKey, Armor existingArmor)
at SWCharGen.frmSWDataEditMain.ModifyItem(DataItem item)
at SWCharGen.frmSWDataEditMain.btnModify_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at SWCharGen.ImageButton.OnClick(EventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at SWCharGen.ImageButton.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)

EDIT: Found something else. If I have a Brawn of 5, and equip a Superior power armor (Kav or PX-11) my Brawn goes up by 1 and my Soak goes up by 3. However, if my Brawn is already at 6 and I equip a Superior power armor, my Brawn remains unchanged (which is correct) however my Soak only goes up by 2 instead of 3. Now, if I equip a Superior heavy battle armor with either a 5 or 6 Brawn my Soak goes up by 3 accordingly. Anyone else get this?
Edited by Arrakus

When I update it, which files/folders do I combine/replace?

Just uninstall. then do a web install and you will no longer have to worry about this.

I have no clue what that is. I'm not very good with computers.

Look at oggdudes signature. remove whatever version you have. click the web install link. after that the program will maintain itself. All you have to worry about then is filling in the talent descriptions etc.

So I am currently using an old laptop (win8) with .NET 4.6, and I keep running into the error below. However it only happens when I try to modify (in GMtools) certain pieces of gear. I think it is the same as discussed on the previous page but I not sure. The error comes up on unmodified items and items that I have changed/modified. Help?

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at SWCharGen.SourceControl.cbcSource_CheckBoxCheckedChanged(Object sender, EventArgs e)
at SWCharGen.CheckBoxComboBox.OnCheckBoxCheckedChanged(Object sender, EventArgs e)
at SWCharGen.CheckBoxComboBox.Items_CheckBoxCheckedChanged(Object sender, EventArgs e)
at SWCharGen.CheckBoxComboBoxItemList.OnCheckBoxCheckedChanged(Object sender, EventArgs e)
at SWCharGen.CheckBoxComboBoxItemList.item_CheckedChanged(Object sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Windows.Forms.CheckBox.OnCheckedChanged(EventArgs e)
at SWCharGen.CheckBoxComboBoxItem.OnCheckedChanged(EventArgs e)
at System.Windows.Forms.CheckBox.set_CheckState(CheckState value)
at System.Windows.Forms.CheckBox.set_Checked(Boolean value)
at SWCharGen.SourceControl.SetSources(CharData data, String defaultSource, DataItem item)
at SWCharGen.frmAddArmor.SetKey(DataItem existingItem, String newKey)
at SWCharGen.frmAddArmor.GetArmor(CharData myData, IWin32Window parent, String newKey, Armor existingArmor)
at SWCharGen.frmSWDataEditMain.ModifyItem(DataItem item)
at SWCharGen.frmSWDataEditMain.btnModify_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at SWCharGen.ImageButton.OnClick(EventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at SWCharGen.ImageButton.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)

EDIT: Found something else. If I have a Brawn of 5, and equip a Superior power armor (Kav or PX-11) my Brawn goes up by 1 and my Soak goes up by 3. However, if my Brawn is already at 6 and I equip a Superior power armor, my Brawn remains unchanged (which is correct) however my Soak only goes up by 2 instead of 3. Now, if I equip a Superior heavy battle armor with either a 5 or 6 Brawn my Soak goes up by 3 accordingly. Anyone else get this?

that is exactly the issue I was having.

Go to the folder where you installed or unpacked the program.

Go into the data directory.

Open up any *.xml file with notepad

Find something with a source and change the source to "User Data", without the quotes.

Look for this:

<Source>blah blah blah</Source>

change it to this:

<Source>User Data</Source>

Edit: The file I changed was the TIE_BR Boarding Shuttle.xml found inside the Vehicles folder. That was because that was the only first file I found that broke the modify screen. So if changing any file doesn't work change that one.

Edited by SilindeT

Cool. Will try this when I get home tonight.

Anyone else able to duplicate the Brawn/soak error that mentioned above?

So I am currently using an old laptop (win8) with .NET 4.6, and I keep running into the error below. However it only happens when I try to modify (in GMtools) certain pieces of gear. I think it is the same as discussed on the previous page but I not sure. The error comes up on unmodified items and items that I have changed/modified. Help?

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at SWCharGen.SourceControl.cbcSource_CheckBoxCheckedChanged(Object sender, EventArgs e)
at SWCharGen.CheckBoxComboBox.OnCheckBoxCheckedChanged(Object sender, EventArgs e)
at SWCharGen.CheckBoxComboBox.Items_CheckBoxCheckedChanged(Object sender, EventArgs e)
at SWCharGen.CheckBoxComboBoxItemList.OnCheckBoxCheckedChanged(Object sender, EventArgs e)
at SWCharGen.CheckBoxComboBoxItemList.item_CheckedChanged(Object sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Windows.Forms.CheckBox.OnCheckedChanged(EventArgs e)
at SWCharGen.CheckBoxComboBoxItem.OnCheckedChanged(EventArgs e)
at System.Windows.Forms.CheckBox.set_CheckState(CheckState value)
at System.Windows.Forms.CheckBox.set_Checked(Boolean value)
at SWCharGen.SourceControl.SetSources(CharData data, String defaultSource, DataItem item)
at SWCharGen.frmAddArmor.SetKey(DataItem existingItem, String newKey)
at SWCharGen.frmAddArmor.GetArmor(CharData myData, IWin32Window parent, String newKey, Armor existingArmor)
at SWCharGen.frmSWDataEditMain.ModifyItem(DataItem item)
at SWCharGen.frmSWDataEditMain.btnModify_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at SWCharGen.ImageButton.OnClick(EventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at SWCharGen.ImageButton.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)

EDIT: Found something else. If I have a Brawn of 5, and equip a Superior power armor (Kav or PX-11) my Brawn goes up by 1 and my Soak goes up by 3. However, if my Brawn is already at 6 and I equip a Superior power armor, my Brawn remains unchanged (which is correct) however my Soak only goes up by 2 instead of 3. Now, if I equip a Superior heavy battle armor with either a 5 or 6 Brawn my Soak goes up by 3 accordingly. Anyone else get this?

This was an interesting one because I've had the same code in there for ages and you're the first one to find this bug :)

First off, ranks... I have a class for figuring out ranks, be it characteristics, skills, whatever. Each rank has sources, such as starting ranks, species ranks, item ranks, attachment ranks, etc. When calculating the final rank for something, I add them all up, then do some extra stuff for characteristics (which top out at 6 or 7, depending on ranks from cybernetics) and skills (same thing, but at 5 or 6).

For soak rank, I was taking the final rank, then subtracting item and attachment ranks, which don't contribute to soak. The problem was that the final rank was already ignoring the +1 Brawn from the armor, since you had already naturally reached rank 6 without it. So, when I subtracted the item rank, it came out as 5 instead of 6. That's why your soak was showing as 8 (5 + 3 for the armor).

So... what I do now is save off item and attachment ranks, set them to 0, then get the final rank (which will be the correct rank for soak after handling max values), then set them back to what they were when I'm done. Now, with the superior KAV armor and a natural Brawn of 6, it's showing a soak value of 9, like it should. This problem obviously wouldn't show up if your natural Brawn was 5 going into this.

It'll be fixed in the next release, which, again, will be the last bug fix release for 1.6.1 before I add Lead by Example.

Weapons added through an Oversized External Weapon Mount do not show up in the weapon systems list on the print sheet of vehicles. Nor are they modifiable or does it seem to support twin, triple or quad versions...