FreeOrion

Forums for the FreeOrion project
It is currently Wed May 22, 2013 7:33 pm

All times are UTC




Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: Data, CVS, Resolutions
PostPosted: Sat May 07, 2005 8:26 pm 
Offline
Space Floater

Joined: Sat Aug 14, 2004 1:01 am
Posts: 33
Location: Dublin, Ireland
Hi

I compiled from CVS and got FO to work, and I successfully compiled it. Then FO crashed because i had no default/data, so I downloaded data.tar.bz2 (from somewhere off the forums), uncompressed it into default, and then ran FO again.

Joy! It works! I get a slash screen and everything.
Bummer. Everything's in 1280x1024 resolution and my laptop only does 1024x768. I can't see half the game!

Work-around anyone? Is there a setting that I'm missing or do I need a new set of data files for that resolution?

I don't mean to be a brat. I'm just trying to get FO running on my machine so that I can start contributing, and to also post on the Wiki how others can get it to run on theirs.

I browsed the CVS tree and there is no "data" folder in there under "defaults". Where are we storing the data files? How are we making them available to downloaders? Even the July 2004 v0.2 files that you can download from SourceForge don't come with data files. Is this intentional?

Regards

Carlos


Top
 Profile  
 
 Post subject:
PostPosted: Sat May 07, 2005 9:01 pm 
Offline
Space Floater

Joined: Sat Aug 14, 2004 1:01 am
Posts: 33
Location: Dublin, Ireland
'K. Doing ./freeorion --help gets me some options, chief of interest to me are:

--app-height
Sets vertical app resolution. | Default: 1024

--app-width
Sets horizontal app resolution. | Default: 1280

Also in UI/ClientUI.cpp I find:

db.Add( "app-width", "Sets horizontal app resolution.", 1280, RangedValidator<int>(640, 2048));
db.Add( "app-height", "Sets vertical app resolution.", 1024, RangedValidator<int>(480, 1536));

Let's see if that gets me anywhere.

Carlos


Top
 Profile  
 
 Post subject: Resolution solved. Data files?
PostPosted: Sat May 07, 2005 9:09 pm 
Offline
Space Floater

Joined: Sat Aug 14, 2004 1:01 am
Posts: 33
Location: Dublin, Ireland
Okay. Solved my resolution crisis.

But what's the process being used to distribute the data files?

Carlos


Top
 Profile  
 
 Post subject: Solved, solved, and SOLVED!
PostPosted: Sat May 07, 2005 10:51 pm 
Offline
Space Floater

Joined: Sat Aug 14, 2004 1:01 am
Posts: 33
Location: Dublin, Ireland
Thank you pd for putting me on the right path.

For anyone who needs to know, data-files can be got here:

http://freeorion.org/index.php/Compile# ... ng_Artwork

Sorry for polluting the forums.

Carlos


Top
 Profile  
 
 Post subject:
PostPosted: Sat May 07, 2005 10:59 pm 
Offline
Graphics Lead Emeritus
User avatar

Joined: Mon Mar 08, 2004 6:17 pm
Posts: 1933
Location: 52°16'N 10°31'E
no problem :)

next time, you should possibly use the edit function *g*


Top
 Profile  
 
 Post subject:
PostPosted: Sat May 07, 2005 11:27 pm 
Offline
Programming, Design, and De Facto Lead
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 7891
Location: Vancouver, BC
try freeorion -g to generate config.xml

Code:
-g, --generate-config-xml
     Uses all the settings from any existing config.xml file
     and those given on the command line to generate a
     config.xml file in "default/". This will overwrite the
     current "default/config.xml" file, if it exists.

You can then edit config.xml to change the default resolution to whatever you'd like.

You might also want to set log-level to DEBUG (though it only works for the client at the moment... though you can edit SeverApp.cpp if you want the server logs as well)


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 08, 2005 10:29 am 
Offline
Space Floater

Joined: Sat Aug 14, 2004 1:01 am
Posts: 33
Location: Dublin, Ireland
Thanks lads.

And <log-level>DEBUG it is then.

Other than that and compiling with '-g', is there anything else that I could do to maximize debugging output from FO?

The reason that I ask is because debugging is part of how I want to contribute to the project.

Carlos


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 08, 2005 6:00 pm 
Offline
Programming, Design, and De Facto Lead
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 7891
Location: Vancouver, BC
in ServerApp::ServerApp, comment out this line:

//m_log_category.setPriority(PriorityValue(GetOptionsDB().Get<std::string>("log-level")));

and add in this line:

m_log_category.setPriority(log4cpp::Priority::DEBUG);

For some reason the debug level isn't retreived by the server from the client's config.xml. Without this change, you won't get any server logs (in freeoriond.log).

And you can get debug output to the logs using

Logger().debugStream() << "whatever text" << someObject.getter() << " and " << someVariable;


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 08, 2005 7:31 pm 
Offline
Space Floater

Joined: Sat Aug 14, 2004 1:01 am
Posts: 33
Location: Dublin, Ireland
Cool. Thanks Geoff.


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 09, 2005 7:20 am 
Offline
Vacuum Dragon
User avatar

Joined: Fri Dec 26, 2003 12:42 pm
Posts: 872
Location: Germany, Berlin
Quote:
try freeorion -g to generate config.xml


Funny, that option was new to me. I had to catch every exception to find the deprecated options.

_________________
Press any key to continue or any other key to cancel.
Can COWs fly?


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 09, 2005 4:24 pm 
Offline
Programming, Design, and De Facto Lead
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 7891
Location: Vancouver, BC
try

freeorion -h

it lists all the command line options.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group