Home World Forum
Stars! AutoHost web forums

Jump to Stars! AutoHost


 
 
Home » Stars! Clones, Extensions, Modding » Stars! Nova - Development » Cargo transfer complete
Cargo transfer complete Sat, 25 June 2011 07:17 Go to next message
Musmuris

 
Master Chief Petty Officer
Stars! Nova developer
Stars! Nova developer

Messages: 96
Registered: June 2011
Just commited the new cargo transfer dialog. Please have a play and:
a) Try and break it!
b) Let me know what you think Smile

I want to fit the new clickable cargo thing into the normal cargo as well instead of the sliders

Report message to a moderator

Re: Cargo transfer complete Sat, 25 June 2011 07:20 Go to previous messageGo to next message
Aeglos is currently offline Aeglos

 
Chief Warrant Officer 1
Stars! Nova developer
Stars! Nova developer

Messages: 142
Registered: May 2011
Location: Chile
I have some news for you regarding certain .resx files and Mono... Laughing
/home/aeglos/Code/trunk/Nova/WinForms/Gui/Dialogs/CargoTrans ferDialog.resx: Error: Error: Invalid ResX input.
Position: Line 127, Column 5.
Inner exception: Couldn't find assembly 'Nova.Common, Version=0.4.4193.16645, Culture=neutral, PublicKeyToken=null'
 (Nova)

Report message to a moderator

icon8.gif  Re: Cargo transfer complete Sat, 25 June 2011 08:07 Go to previous messageGo to next message
Musmuris

 
Master Chief Petty Officer
Stars! Nova developer
Stars! Nova developer

Messages: 96
Registered: June 2011
Mad Mad Mad Mad Mad Mad
wonder why. I'm on it.. sorry.

Report message to a moderator

Re: Cargo transfer complete Sat, 25 June 2011 08:29 Go to previous messageGo to next message
Musmuris

 
Master Chief Petty Officer
Stars! Nova developer
Stars! Nova developer

Messages: 96
Registered: June 2011
Well I've removed it for now. However whenever I add a new CargoMeter to a control then VS dumps crap for the CargoLevels object into the .resx file.

I tried making a type converter for it so it shows as a string in the designer properties but this didn't change anything. I'll ask one of the WinForms Gurus as work and see if they can work out how to stop it.

(In theory there's a way to stop the designer even seeing it, but that wasn't working either Sad )

Report message to a moderator

Re: Cargo transfer complete Sat, 25 June 2011 18:25 Go to previous messageGo to next message
Daniel is currently offline Daniel

 
Chief Warrant Officer 3
Stars! Nova developer
Stars! Nova developer

Messages: 179
Registered: April 2006
Location: Nowra, Australia
I was just happily breaking these before and letting evild00d fix them - no idea how he did that. We need to document the work around now there are more developers using mono and we can not afford to just break the build all the time.


Have fun.

Report message to a moderator

Re: Cargo transfer complete Sat, 25 June 2011 22:57 Go to previous messageGo to next message
Daniel is currently offline Daniel

 
Chief Warrant Officer 3
Stars! Nova developer
Stars! Nova developer

Messages: 179
Registered: April 2006
Location: Nowra, Australia
Just gave the cargo transfer a go in game. It is awesome. I am also loving being able to right click a star, see the list of fleets and pick one. The improvements to map zoom and pan and the background are great too. Stars! Nova is starting to look a lot more professional.


Have fun.

Report message to a moderator

Re: Cargo transfer complete Sun, 26 June 2011 09:03 Go to previous messageGo to next message
FurFuznel is currently offline FurFuznel

 
Lt. Junior Grade
Stars! Nova developer
Stars! Nova developer

Messages: 437
Registered: November 2002
Location: New Brunswick, Canada
Daniel wrote on Sat, 25 June 2011 19:25

I was just happily breaking these before and letting evild00d fix them - no idea how he did that. We need to document the work around now there are more developers using mono and we can not afford to just break the build all the time.

evild00d can provide more details but in the mean time here are links to two of threads in the old forums where he discussed how he was fixing some of the previous resx problems:
First Thread posts 6 to 8
Second Thread posts 5 and 6




Shadallark <==> FurFuznel
Mental anguish is for those who choose to think - FurFuznel
running Mac OS X 10.6.7

Report message to a moderator

Re: Cargo transfer complete Sun, 26 June 2011 11:55 Go to previous messageGo to next message
Musmuris

 
Master Chief Petty Officer
Stars! Nova developer
Stars! Nova developer

Messages: 96
Registered: June 2011
Daniel wrote on Sat, 25 June 2011 22:57

Just gave the cargo transfer a go in game. It is awesome.


Glad it works Smile

FurFuznel wrote on Sun, 26 June 2011 09:03


evild00d can provide more details but in the mean time here are links to two of threads in the old forums where he discussed how he was fixing some of the previous resx problems:
First Thread posts 6 to 8
Second Thread posts 5 and 6



At the end of those looks like he couldn't work it out. Not had much luck in a quick google for it now.

I'm not sure why the designer puts those binary objects into .resx files (well I can guess), or why Mono can't then read them and that I think must be a bug in Mono. Best thing try is to pull out a sample case that can be put on a Mono forum somewhere.

Report message to a moderator

Re: Cargo transfer complete Sun, 26 June 2011 12:45 Go to previous messageGo to next message
Musmuris

 
Master Chief Petty Officer
Stars! Nova developer
Stars! Nova developer

Messages: 96
Registered: June 2011
Aeglos wrote on Sat, 25 June 2011 07:20

I have some news for you regarding certain .resx files and Mono... Laughing
/home/aeglos/Code/trunk/Nova/WinForms/Gui/Dialogs/CargoTrans ferDialog.resx: Error: Error: Invalid ResX input.
Position: Line 127, Column 5.
Inner exception: Couldn't find assembly 'Nova.Common, Version=0.4.4193.16645, Culture=neutral, PublicKeyToken=null'
 (Nova)




Got it! Well got a workaround that I'm happy with. The new CargoMeter had a CargoLevels property of type Cargo (which is a Nova object as I'm sure you all know Wink) Now By default the designer will serialize all get/set properties but in this case we don't want it to (as it puts nasty binary crap in the .resx)

Luckily there is an attribute to do just that...

        
[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibi lity.Hidden)]
public Cargo CargoLevels
{
    get { return cargoLevels; }
    set { cargoLevels = value; Invalidate();}
}



[Reference this link: http://blog.aggregatedintelligence.com/2007/08/custom-contro l-visual-studio-designer.html]


[Updated on: Sun, 26 June 2011 12:45]

Report message to a moderator

Re: Cargo transfer complete Sun, 26 June 2011 12:45 Go to previous messageGo to next message
Aeglos is currently offline Aeglos

 
Chief Warrant Officer 1
Stars! Nova developer
Stars! Nova developer

Messages: 142
Registered: May 2011
Location: Chile
I found and option on SharpDevelop to "Find missing resource Keys". If it brakes in the future I'll see it it sheds some light about it.

EDIT: Missed you last response. Yeah, that was the variable I mentioned earlier. I couldn't get it to work though, proably mistyped it or I was lacking the Browsable attribute.


[Updated on: Sun, 26 June 2011 12:46]

Report message to a moderator

Re: Cargo transfer complete Sun, 26 June 2011 12:48 Go to previous messageGo to next message
Musmuris

 
Master Chief Petty Officer
Stars! Nova developer
Stars! Nova developer

Messages: 96
Registered: June 2011
Well you have to add it, then make the designer remove all the crap in put in, and as you couldn't run the designer the crap was probably still there.

Hopefully this means it won't re-appear!

Report message to a moderator

Re: Cargo transfer complete Sun, 26 June 2011 15:37 Go to previous messageGo to next message
Musmuris

 
Master Chief Petty Officer
Stars! Nova developer
Stars! Nova developer

Messages: 96
Registered: June 2011
Musmuris wrote on Sat, 25 June 2011 07:17


I want to fit the new clickable cargo thing into the normal cargo as well instead of the sliders


This is now also done. I also chose new colours so the text was more readable. They are defined (in 2 places sadly, one for colours and one for brushes) in CargoMeter.cs so feel free to play with them.

Report message to a moderator

Re: Cargo transfer complete Sun, 26 June 2011 23:56 Go to previous messageGo to next message
Aeglos is currently offline Aeglos

 
Chief Warrant Officer 1
Stars! Nova developer
Stars! Nova developer

Messages: 142
Registered: May 2011
Location: Chile
I love the cargo meters. Amazing work Mus! We can probably use it for the warp slider too.

Two minuscule cosmetic bugs: Boranium is spelled "Boronium" and the Cargo bay slider has a little empty notch at the right side when at full cargo.

Report message to a moderator

Re: Cargo transfer complete Mon, 27 June 2011 03:36 Go to previous message
Musmuris

 
Master Chief Petty Officer
Stars! Nova developer
Stars! Nova developer

Messages: 96
Registered: June 2011
Thanks.
I noticed the end of the bar problem - oddly I had to make it fill less earlier when using white, but now it's purple there's a gap. I'll look into it.

Spellings changed!

Report message to a moderator

Previous Topic: Graphics
Next Topic: Where y'all from
Goto Forum:
  


Current Time: Thu Mar 28 06:56:01 EDT 2024