FreeOrion

Forums for the FreeOrion project
It is currently Thu Jun 20, 2013 6:16 am

All times are UTC




Post new topic Reply to topic  [ 294 posts ]  Go to page Previous  1, 2, 3, 4, 5 ... 20  Next
Author Message
 Post subject:
PostPosted: Fri Jul 11, 2003 12:17 pm 
Offline
Space Kraken

Joined: Thu Jun 26, 2003 2:17 pm
Posts: 167
Location: Pittsburgh, PA
I'll drop you a line after work to let you know if its working.

_________________
FreeOrion Programmer


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 11, 2003 9:25 pm 
Offline
Space Kraken

Joined: Thu Jun 26, 2003 2:17 pm
Posts: 167
Location: Pittsburgh, PA
ok, the window now render properly. however, whenever i move the mouse over a button...the button moves down a few pixels!!

If I manage to click on star game, the server screen appears, and if I click anywhere on the screen it crashes....whether the server is running or not.

suggestions?

_________________
FreeOrion Programmer


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jul 12, 2003 5:34 am 
Offline
Programming Lead Emeritus
User avatar

Joined: Thu Jun 26, 2003 1:33 pm
Posts: 1092
Tony wrote me a PM:
Quote:
Zach,

I've deleted everything that had to do with FreeOrion, log4cpp, boost, expat, and GG from my hard drive and I went and checked out everything anew. Its still not working....and everything was fine before GG was converted to a DLL. Could there be a problem with the DLL or LIB file that is causing these problems? I haven't heard from anybody else using Windows, so I don't know if the problem is just on my machine or if it specific to windows.

Here is a rundown of whats going on....sorry if you've seen this before.

- everything builds fine, no warnings or compile/linker errors

- The app starts fine, I can see the background image, however the menu window doesn't render the window frame....the 3 buttons ARE visible, though. The minimize and close buttons are NOT visible.

- If I click anywhere on the screen, other than one of the visible buttons, the app crashes.

- If I click "Start Game" the Sever window opens. Again, the window frame isn't rendered, but I see all the buttons and text controls.

- The droplist works, as does the cancel button. The search for more servers buttons works and the MessageDialog window appears fine...including the window's background rendering.

- When I click OK after selecting a server....any server...the app crashes.

- Looking through the source code, there doesn't look like anything should be causing problems. The rendering code is right where it needs to be and the signals are all connected properly. Additionally, the log files aren't marking any errors or exceptions.

I hate to bother you with this, but I'm pretty much dead in the water until I can get this working. I really believe it has something to do with the DLL conversion. I can start throwing log statements into the code to trace out where exactly its failing, or maybe I could try building the GG DLL myself. But if we can figure out the problem another way, I'd much prefer that.

Thanks.

_________________
User Interface Lead


I'm quoting it here and responding so others know about this as well.

I screwed the pooch a second time with the GG dll. It is now recommitted again with everything working fine (or at least not crashing). You will probably need to recompile your entire client app, since the error stems from something in the GGWnd.h header, and almost everything includes that.

As for the server crashing, you got me. I'll leave that to whomever wrote the universe creation code. I only think that's the culprit because the last log message says something about universe creation and number of stars.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 17, 2003 2:42 am 
Offline
Space Kraken

Joined: Thu Jun 26, 2003 2:17 pm
Posts: 167
Location: Pittsburgh, PA
:D :D :D :D :D
FINALLY GOT IT TO COMPILE AND RUN!!
:D :D :D :D :D
...in Win32

Now that I'm back in business, I intend to start on the galaxy map....but thats food for another thread!

_________________
FreeOrion Programmer


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 05, 2003 1:08 pm 
Offline
Space Squid

Joined: Fri Jun 27, 2003 6:23 pm
Posts: 66
Location: Milkyway
I compiled humanclient again.
ERRORS:

HumanClientApp.cpp D:\freeorion\CLIENT\HUMAN\HumanClientApp.cpp
In member function `virtual void
323 D:\freeorion\CLIENT\HUMAN\HumanClientApp.cpp
`SDL_BUTTON_WHEELUP' undeclared (first use this
(Each undeclared identifier is reported only once for
324 D:\freeorion\CLIENT\HUMAN\HumanClientApp.cpp
`SDL_BUTTON_WHEELDOWN' undeclared (first use this
../../UI/ServerConnectWnd.cpp D:\freeorion\UI\ServerConnectWnd.cpp
In constructor
58 D:\freeorion\UI\ServerConnectWnd.cpp
cannot allocate an object of type `
58 D:\freeorion\UI\ServerConnectWnd.cpp
because the following virtual functions are
86 D:\DEV-CPP\include\GGTextControl.h
virtual void
52 D:\DEV-CPP\include\GGControl.h
virtual int GG::Control::Render()
../../UI/ToolWnd.cpp D:\freeorion\UI\ToolWnd.cpp
In constructor `ToolWnd::ToolWnd(int, int, const
13 D:\freeorion\UI\ToolWnd.cpp
cannot allocate an object of type `GG::TextControl'
13 D:\freeorion\UI\ToolWnd.cpp
because the following virtual functions are
86 D:\DEV-CPP\include\GGTextControl.h
virtual void
52 D:\DEV-CPP\include\GGControl.h
virtual int GG::Control::Render()
../../UI/EmpireSelect.cpp D:\freeorion\UI\EmpireSelect.cpp
In member function `void EmpireSelect::Init()':
90 D:\freeorion\UI\EmpireSelect.cpp
cannot allocate an object of type `
90 D:\freeorion\UI\EmpireSelect.cpp
because the following virtual functions are
86 D:\DEV-CPP\include\GGTextControl.h
virtual void
52 D:\DEV-CPP\include\GGControl.h
virtual int GG::Control::Render()
../../UI/LinkText.cpp D:\freeorion\UI\LinkText.cpp
In constructor `LinkText::LinkText(int, int, int, int,
14 D:\freeorion\UI\LinkText.cpp
no matching function for call to `GG::TextControl::
49 D:\DEV-CPP\include\GGTextControl.h
candidates are:
111 D:\DEV-CPP\include\GGTextControl.h
110 D:\DEV-CPP\include\GGTextControl.h
../../UI/LinkText.cpp D:\freeorion\UI\LinkText.cpp
In constructor `LinkText::LinkText(int, int, int, int,
23 D:\freeorion\UI\LinkText.cpp
no matching function for call to `GG::TextControl::
49 D:\DEV-CPP\include\GGTextControl.h
candidates are:
111 D:\DEV-CPP\include\GGTextControl.h
110 D:\DEV-CPP\include\GGTextControl.h
../../UI/LinkText.cpp D:\freeorion\UI\LinkText.cpp
In constructor `LinkText::LinkText(int, int, const
32 D:\freeorion\UI\LinkText.cpp
no matching function for call to `GG::TextControl::
49 D:\DEV-CPP\include\GGTextControl.h
candidates are:
111 D:\DEV-CPP\include\GGTextControl.h
110 D:\DEV-CPP\include\GGTextControl.h
../../UI/LinkText.cpp D:\freeorion\UI\LinkText.cpp
In constructor `LinkText::LinkText(int, int, const
41 D:\freeorion\UI\LinkText.cpp
no matching function for call to `GG::TextControl::
49 D:\DEV-CPP\include\GGTextControl.h
candidates are:
111 D:\DEV-CPP\include\GGTextControl.h
110 D:\DEV-CPP\include\GGTextControl.h
../../UI/LinkText.cpp D:\freeorion\UI\LinkText.cpp
In member function `void LinkText::FindLinks()':
149 D:\freeorion\UI\LinkText.cpp
`GetLineData' undeclared (first use this function)
(Each undeclared identifier is reported only once
150 D:\freeorion\UI\LinkText.cpp
`GetFont' undeclared (first use this function)
5 D:\freeorion\UI\MapWnd.cpp
In file included from ../../UI/MapWnd.cpp
55 D:\freeorion\UI\MapWnd.h
type specifier omitted for parameter `Uint32'
55 D:\freeorion\UI\MapWnd.h
parse error before `)' token
213 D:\freeorion\UI\MapWnd.cpp
prototype for `int MapWnd::LDrag(const GG::Pt&, const
candidate is D:\freeorion\UI\MapWnd.h:55
virtual int MapWnd::LDrag(...)
../../UI/SystemIcon.cpp D:\freeorion\UI\SystemIcon.cpp
In constructor `SystemIcon::SystemIcon(int)':
84 D:\freeorion\UI\SystemIcon.cpp
cannot allocate an object of type `GG::TextControl'
84 D:\freeorion\UI\SystemIcon.cpp
because the following virtual functions are
86 D:\DEV-CPP\include\GGTextControl.h
virtual void
52 D:\DEV-CPP\include\GGControl.h
virtual int GG::Control::Render()
52 D:\DEV-CPP\include\GGControl.h
virtual int GG::Control::Render()

the files inside SDL_net and SDL_net2 are still not downloadable, I had to use the files I have maybe from an older download. Until now noone has answerd me in the case of SDL_net and SDL_net2.


EDIT:
@tzlaine: What the hell is WindowsKit.zip/Copy-to-Dev-Cpp/libGiGi.a ? I didn't find that file.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 05, 2003 1:51 pm 
Offline
Space Kraken

Joined: Thu Jun 26, 2003 2:17 pm
Posts: 167
Location: Pittsburgh, PA
trace wrote:
I compiled humanclient again.
ERRORS:

<snip>

the files inside SDL_net and SDL_net2 are still not downloadable, I had to use the files I have maybe from an older download. Until now noone has answerd me in the case of SDL_net and SDL_net2.


EDIT:
@tzlaine: What the hell is WindowsKit.zip/Copy-to-Dev-Cpp/libGiGi.a ? I didn't find that file.


First of all, you need to copy your ENTIRE compilation log. Don't just copy the truncated one from the Compiler window at the bottom of dev-cpp. This makes it VERY difficult to really see what errors you're actually having.

One thing I CAN see, however, is that your SDL is out-of-date. Following the instructions in WindowsKit.zip precisely will fix that problem. As for your other ones, it may be from out-of-date GG headers, which should also be fixed from copying the files where they need to be from WindowsKit.zip.

Also, don't use old files for SDL_net. The GG download contains everything you need for SDL_net and handles it transparently.

_________________
FreeOrion Programmer


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 05, 2003 2:39 pm 
Offline
Creative Contributor

Joined: Thu Jun 26, 2003 4:33 pm
Posts: 226
Location: Baltimore, MD
Zach just committed a new windowskit last night, make sure you get it from CVS first

_________________
Empire Team Lead


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 05, 2003 3:07 pm 
Offline
Programming Lead Emeritus
User avatar

Joined: Thu Jun 26, 2003 1:33 pm
Posts: 1092
Quote:
EDIT:
@tzlaine: What the hell is WindowsKit.zip/Copy-to-Dev-Cpp/libGiGi.a ? I didn't find that file.


Why the hell are you asking? You don't need that file.

Look, you asked me to post as soon as I updated the WindowsKit.zip, and I did, in two places no less. You need to read the README.txt a little more closely, it seems.

There is one problem with README.txt that is my fault, though the correct info exists in these forums. You should not download the SDL DevPak with DevC++, but should download the SDL sources directly. Get the latest version v1.2.5.

However, there are several errors in your output listing that indicate that you are using old GG headers, which leads me to believe, as I mentioned earlier, that you need to read the README.txt more closely. If you had copied WindowsKit.zip/GG over your local FreeOrion/GG directory, you would not have seen
Quote:
58 D:\freeorion\UI\ServerConnectWnd.cpp
cannot allocate an object of type `
58 D:\freeorion\UI\ServerConnectWnd.cpp
because the following virtual functions are
86 D:\DEV-CPP\include\GGTextControl.h
virtual void
52 D:\DEV-CPP\include\GGControl.h
virtual int GG::Control::Render()

which is a result of using a version of GGTextControl.h that is 2 or 3 revisions old(!).


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 05, 2003 3:46 pm 
Offline
Space Kraken

Joined: Thu Jun 26, 2003 2:17 pm
Posts: 167
Location: Pittsburgh, PA
I know i've been very confused a few times when the GG stuff changed

just make sure that you download everything and checkout everything brand new BEFORE you start posting here.

As it seems I'm one of the only developers using windows, I can testify that the Windows stuff DOES work....as long as you're up to date.

_________________
FreeOrion Programmer


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 05, 2003 11:43 pm 
Offline
Space Kraken

Joined: Mon Jul 07, 2003 10:17 am
Posts: 146
Not that I'm a developer, but I do compile the game under windows. Like tsev said, check out everything new and it should mostly work (although occasionally I have to make minor modifications, like commentting out half finished code).


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 07, 2003 8:06 am 
Offline
Space Squid

Joined: Fri Jun 27, 2003 6:23 pm
Posts: 66
Location: Milkyway
Sorry, but I can not let it work. I downloaded the newest SDL.dll, but same error. Ahm the files to compile are 2 days old.
ERROSR:
HumanClientApp.cpp D:\freeorionnew\FreeOrion\client\human\HumanClientApp.cpp
In member function `virtual void
323 D:\freeorionnew\FreeOrion\client\human\HumanClientApp.cpp
`SDL_BUTTON_WHEELUP' undeclared (first use this
(Each undeclared identifier is reported only once for
324 D:\freeorionnew\FreeOrion\client\human\HumanClientApp.cpp
`SDL_BUTTON_WHEELDOWN' undeclared (first use this

compilation log:
Compiler: Default compiler
Building Makefile: "D:\freeorionnew\FreeOrion\client\human\Makefile.win"
Führt make... aus
make.exe -f "D:\freeorionnew\FreeOrion\client\human\Makefile.win" all
g++.exe -D__DEBUG__ -c HumanClientApp.cpp -o ../../objs/HumanClientApp.o -I"D:/DEV-CPP/include/c++" -I"D:/DEV-CPP/include/c++/mingw32" -I"D:/DEV-CPP/include/c++/backward" -I"D:/DEV-CPP/include" -I"C:/Dev-Cpp/include/SDL" -I"C:/Dev-Cpp/include/c++/mingw32" -I"C:/boost_1_30_0" -I"C:/Dev-Cpp/include/freetype2" -I"C:/Expat-1.95.5/Source/lib" -I"C:/log4cpp-0.2.7/include" -I"../../GG/include" -I"../../GG/include/net" -I"../../GG/include/dialogs" -DFREEORION_WIN32 -DFREEORION_BUILD_HUMAN -g3HumanClientApp.cpp: In member function `virtual void
HumanClientApp::HandleSDLEvent(const SDL_Event&)':
HumanClientApp.cpp:323: `SDL_BUTTON_WHEELUP' undeclared (first use this
function)
HumanClientApp.cpp:323: (Each undeclared identifier is reported only once for
each function it appears in.)
HumanClientApp.cpp:324: `SDL_BUTTON_WHEELDOWN' undeclared (first use this
function)g++.exe -D__DEBUG__ ../../objs/chmain.o ../../objs/HumanClientApp.o ../../objs/ClientApp.o ../../objs/ClientNetworkCore.o ../../objs/Message.o ../../objs/NetworkCore.o ../../objs/XDiff.o ../../objs/XHash.o ../../objs/XLut.o ../../objs/XParser.o ../../objs/XTree.o ../../objs/Process.o ../../objs/OrderSet.o ../../objs/Order.o ../../objs/ClientUniverse.o ../../objs/UniverseObject.o ../../objs/Fleet.o ../../objs/Planet.o ../../objs/PopCenter.o ../../objs/ProdCenter.o ../../objs/Ship.o ../../objs/System.o ../../objs/ClientUI.o ../../objs/GalaxySetupWnd.o ../../objs/IntroScreen.o ../../objs/ServerConnectWnd.o ../../objs/StringTable.o ../../objs/ToolContainer.o ../../objs/ToolWnd.o ../../objs/ClientEmpireManager.o ../../objs/Empire.o ../../objs/EmpireManager.o ../../objs/TechLevel.o ../../objs/TechManager.o ../../objs/CUI_Wnd.o ../../objs/EmpireSelect.o ../../objs/LinkText.o ../../objs/About.o ../../objs/GalaxyMapScreen.o ../../objs/MapWnd.o ../../objs/SystemIcon.o -o "..\..\freeorion.exe" -L"D:/DEV-CPP/lib" -L"C:/Expat-1.95.5/StaticLibs" -mwindows -lmingw32 -lSDLmain -lSDL -lSDL_mixer -lopengl32 -lglu32 -lfreetype -lwsock32 -lboost_signals -lboost_filesystem -lboost_regex -lexpat -llog4cpp -lz ../../GiGi.dll ../../GiGiNet.dll ../../GiGiSDL.dll
Befehl oder Dateiname nicht gefunden.Ausführung beendet

Shall I deinstall SDL_DevPak ?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 07, 2003 11:36 am 
Offline
Space Kraken

Joined: Thu Jun 26, 2003 2:17 pm
Posts: 167
Location: Pittsburgh, PA
trace wrote:
Sorry, but I can not let it work. I downloaded the newest SDL.dll, but same error. Ahm the files to compile are 2 days old.
ERROSR:
HumanClientApp.cpp D:\freeorionnew\FreeOrion\client\human\HumanClientApp.cpp
In member function `virtual void
323 D:\freeorionnew\FreeOrion\client\human\HumanClientApp.cpp
`SDL_BUTTON_WHEELUP' undeclared (first use this
(Each undeclared identifier is reported only once for
324 D:\freeorionnew\FreeOrion\client\human\HumanClientApp.cpp
`SDL_BUTTON_WHEELDOWN' undeclared (first use this


The definitions in red are in the new version of SDL in WindowsKit.zip. If you're getting these errors, then you failed to follow the instructions in the readme file. Make sure you've copied the new SDL headers to your Dev-cpp\include directory.

_________________
FreeOrion Programmer


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 09, 2003 2:36 pm 
Offline
Space Squid

Joined: Fri Jun 27, 2003 6:23 pm
Posts: 66
Location: Milkyway
I tried everything with the source, copied things around tried and tried, then I downloaded the new source und tried everything from the beginning and it COMPILED everything.........

But there is a problem.
I started the server and then started the humanclient, started a game - ERROR, started again, galaxy built worked, but .... blank screen nothing happened


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 09, 2003 3:02 pm 
Offline
Space Kraken

Joined: Thu Jun 26, 2003 2:17 pm
Posts: 167
Location: Pittsburgh, PA
There is a quasi-bug in the code right now, once you click OK on the Galaxy Setup screen, a small window appears summarizing the choices you've made. YOU MUST WAIT until the server creates the galaxy before you click OK on taht window. Wait about 5 seconds, then click OK, if you go through it fast, it will fail.

Also, you have to restart the server everytime you restart the client.
Make sure you exit the server not by closing the window, but by pressing Control-C while that window has focus. This will kill the AI client process. If you don't do this, you may have problems, and it leaves the AI process out there consuming resources.

You can always kill the AI process through Task Manager, too.

_________________
FreeOrion Programmer


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 09, 2003 6:17 pm 
Offline
Space Squid

Joined: Fri Jun 27, 2003 6:23 pm
Posts: 66
Location: Milkyway
everything done like you have written.

SERVER:
1057774094 DEBUG : ServerApp::HandleMessage : Received empire setup request (JO
IN_GAME).
1057774094 DEBUG : ServerApp::HandleMessage : Empire name Tyrethianfdgds (JOIN_
GAME).
1057774094 DEBUG : ServerApp::HandleMessage : Empire color 0 (JOIN_GAME).

ahm blank screen nothing happens


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 294 posts ]  Go to page Previous  1, 2, 3, 4, 5 ... 20  Next

All times are UTC


Who is online

Users browsing this forum: Google [Bot] 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