Search found 14 matches

by iron_gollum
Fri Dec 03, 2010 1:57 pm
Forum: Programming
Topic: Switch statements
Replies: 14
Views: 2468

Re: Switch statements

Fine! Is there anything else to do with Encyclopaedia? Otherwise I will look for antoher task on the Programming page.
by iron_gollum
Sun Nov 28, 2010 1:16 pm
Forum: Programming
Topic: Switch statements
Replies: 14
Views: 2468

Re: Switch statements

Pardon me, seems like I accidentally deleted some of the detailed descriptions assignments. The other deletions are merely indentation issues.
by iron_gollum
Sat Nov 27, 2010 9:18 pm
Forum: Programming
Topic: Switch statements
Replies: 14
Views: 2468

Re: Switch statements

Tada! Now that the problem with the unknown exception is solved, I finally made the buttons grey out. The bug with Error:Technology is also fixed. Did I say "in the next few days" a month ago? :D
by iron_gollum
Fri Nov 26, 2010 2:34 pm
Forum: Support
Topic: Crash on world generation - unknown exception
Replies: 7
Views: 1595

Re: Crash on world generation - unknown exception

I deleted config, rebuilt the project, now everything is running. Thanks!
by iron_gollum
Thu Nov 25, 2010 10:40 pm
Forum: Support
Topic: Crash on world generation - unknown exception
Replies: 7
Views: 1595

Re: Crash on world generation - unknown exception

Oh ok, I found it. Indeed, the last lines of the log (the whole log is about 90k lines long, so I don't post it and I can't attach it since it's 1MB) say: Error: XML start/end tag mismatch - m_meters 2010-11-25 18:23:54,375 DEBUG Client : (HumanClientFSM) ~WaitingForTurnDataIdle 2010-11-25 18:23:54,...
by iron_gollum
Thu Nov 25, 2010 1:06 pm
Forum: Support
Topic: Crash on world generation - unknown exception
Replies: 7
Views: 1595

Re: Crash on world generation - unknown exception

Uh, I have neither such a directory, nor a config.xml file in the SDK where I am running it from.
by iron_gollum
Thu Nov 25, 2010 12:04 pm
Forum: Support
Topic: Crash on world generation - unknown exception
Replies: 7
Views: 1595

Crash on world generation - unknown exception

I have first mentioned the problem here , but for the sake of staying ontopic, I'll continue it in this subforum. Now I've spent quite a lot of time searching for the problem, but I must admit my failure and need some help. The crash apparently occurs in Empire::Init() in the last queue (ll. 1111-11...
by iron_gollum
Sun Oct 24, 2010 10:12 am
Forum: Programming
Topic: Switch statements
Replies: 14
Views: 2468

Re: Switch statements

A new content file was added, alignments.txt, in the default directory. If you're loading content files from a different location than where you updated from SVN, that might cause a crash. Regardless, is there an error message or log file that might indicate what the problem is? No, the console ind...
by iron_gollum
Sat Oct 23, 2010 3:17 pm
Forum: Programming
Topic: Switch statements
Replies: 14
Views: 2468

Re: Switch statements

Why does DesignWnd::MainPanel::SetHull need the new bool isUpdateDesign parameter? Its only use seems to be in Sanitize, where it prevents a signal from being emitted when setting the hull to a null pointer... Couldn't you just replace the function call in Sanitize with code, and avoid the extra pa...
by iron_gollum
Tue Sep 21, 2010 2:38 pm
Forum: Programming
Topic: Switch statements
Replies: 14
Views: 2468

Re: Switch statements

Sorry for the late response; as I said I was on a vacation trip. Why is it necessary to add a new VarText type? Non-VarText tags are usable in TextLinker without making them VarText tags. See the ENCYCLOPEDIA_TAG for example. Unless something needs to be substitued based on something in the gamestat...
by iron_gollum
Fri Sep 03, 2010 10:52 pm
Forum: Programming
Topic: Switch statements
Replies: 14
Views: 2468

Re: Switch statements

(I'll post it into this thread.) I have improved the Encyclopedia according to the requests at the Programming work page. Included "Back", "Next" and "Up" buttons along with the possibility to browse back and forth through visited pages. I also included a directory syst...
by iron_gollum
Thu Sep 02, 2010 9:25 am
Forum: Programming
Topic: Switch statements
Replies: 14
Views: 2468

Switch statements

Hi all! I am currently working on improving EncyclopediaDetailPanel.cpp, and I noticed that all multiple choice routines use stacked if-else statements rather than switch statements (example: HandleLinkClick method). I wanted to write some switch statements for the new methods I am contributing, but...
by iron_gollum
Wed Aug 25, 2010 9:33 pm
Forum: Programming
Topic: Color of clickable items
Replies: 1
Views: 557

Color of clickable items

Hi everyone! This is my first contribution here, so prepare for some crank stuff :) I've taken the following task from the programming work page: The colour of clickable links in various bits of in game text (encyclopedia entries, sitrep entries) is hard coded. It should be made configurable with an...
by iron_gollum
Mon Aug 23, 2010 4:26 pm
Forum: Compile
Topic: [solved] Problems with include and resource paths
Replies: 0
Views: 1507

[solved] Problems with include and resource paths

This is a solved problem, I post it for the case more newbies get in trouble with the same issue. I had problems with compiling FreeOrion after I downloaded the SDK. The compiler pretended not to find the file <alut.h> . After I updated the project via SVN, it worked again. Another problem was that ...