GetBuildingType parameter "" wrapping?

Programmers discuss here anything related to FreeOrion programming. Primarily for the developers to discuss.

Moderator: Committer

Post Reply
Message
Author
User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13603
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

GetBuildingType parameter "" wrapping?

#1 Post by Geoff the Medio »

I'm getting errors on the client and server in Universe::GetEffectsAndTargets when GetBuildingType is called. For just the type of content lookup, the content names have an extra set of "" in them... So the "BLD_SHIPYARD_BASE" is passed, instead of just BLD_SHIPYARD_BASE.

This isn't happening for species, or any other type of content as far as I've noticed.

Is anyone else seeing something similar in a recent SVN build?

User avatar
Dilvish
AI Lead and Programmer Emeritus
Posts: 4768
Joined: Sat Sep 22, 2012 6:25 pm

Re: GetBuildingType parameter "" wrapping?

#2 Post by Dilvish »

did you apply the in-progress UniverseGenerator.py patch there? The initial versions of that changed the stripping done when loading the buiding types, taking out whitespace but leaving in the extra quotes. That shouldn't actually be in the svn repository.
If I provided any code, scripts or other content here, it's released under GPL 2.0 and CC-BY-SA 3.0

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13603
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: GetBuildingType parameter "" wrapping?

#3 Post by Geoff the Medio »

Dilvish wrote:did you apply the in-progress UniverseGenerator.py patch there?
Probably...

Post Reply