Author Topic: Glest Advanced Engine  (Read 146863 times)

Dr.Dixie

  • Guest
(No subject)
« Reply #175 on: 1 April 2008, 16:47:08 »
Quote from: "daniel.santos"
Dr.Dixie, are you running this from the console?  I guess I'm going to need to setup a 32 bit ubuntu install somewhere.  Maybe they have a livecd I can use :)


Um. No, I didn't try anything yet. I thought you wanted me to put that in some odd file somewheres.

YES!
Yep. http://www.ubuntu.com/getubuntu


!Dr.Dixie!
« Last Edit: 1 January 1970, 00:00:00 by Dr.Dixie »

daniel.santos

  • Guest
(No subject)
« Reply #176 on: 2 April 2008, 14:24:28 »
The reason I'm asking if you are running from the console is because that is the only way you will see the error message.  If you are just clicking on it, then you will not see the error message.  If you get the latest sources, they *should* work for you, but I can't promise anything.  Also, there will be less warnings.
« Last Edit: 1 January 1970, 00:00:00 by daniel.santos »

Dr.Dixie

  • Guest
(No subject)
« Reply #177 on: 2 April 2008, 15:10:50 »
Yeah, I'm running it in a console. I'll try it a second time today...

After jamming, here's the ../mk/linux folder

Code: [Select]
myname@myname-desktop:~/gae/mk/linux$ ls -l
total 352
-rw-r--r-- 1 myname myname   2621 2008-04-02 10:13 aclocal.m4
-rwxr-xr-x 1 myname myname    962 2008-03-31 10:01 autogen.sh
drwxr-xr-x 3 myname myname   4096 2008-04-02 10:14 build
-rw-r--r-- 1 myname myname  33622 2008-04-02 10:14 config.log
-rwxr-xr-x 1 myname myname  23620 2008-04-02 10:14 config.status
-rwxr-xr-x 1 myname myname 237724 2008-04-02 10:13 configure
-rw-r--r-- 1 myname myname   4374 2008-03-31 10:01 configure.ac
lrwxrwxrwx 1 myname myname     26 2008-04-02 10:13 data -> ../../data/glest_game/data
lrwxrwxrwx 1 myname myname     26 2008-04-02 10:13 docs -> ../../data/glest_game/docs
-rw-r--r-- 1 myname myname   1158 2008-03-31 10:01 glestadv.ini
lrwxrwxrwx 1 myname myname     23 2008-04-02 10:13 glest_game -> ../../source/glest_game
lrwxrwxrwx 1 myname myname     29 2008-04-02 10:13 glest_map_editor -> ../../source/glest_map_editor
-rw-r--r-- 1 myname myname   4139 2008-04-02 10:14 Jamconfig
-rw-r--r-- 1 myname myname   3979 2008-04-02 10:13 Jamconfig.in
-rw-r--r-- 1 myname myname   1414 2008-03-31 10:01 Jamfile
-rw-r--r-- 1 myname myname   1345 2008-03-31 10:01 Jamrules
-rw-r--r-- 1 myname myname   1055 2008-03-31 10:01 makerelease.sh
lrwxrwxrwx 1 myname myname     26 2008-04-02 10:13 maps -> ../../data/glest_game/maps
drwxr-xr-x 4 myname myname   4096 2008-03-31 10:01 mk
lrwxrwxrwx 1 myname myname     31 2008-04-02 10:13 scenarios -> ../../data/glest_game/scenarios
lrwxrwxrwx 1 myname myname     23 2008-04-02 10:13 shared_lib -> ../../source/shared_lib
lrwxrwxrwx 1 myname myname     27 2008-04-02 10:13 techs -> ../../data/glest_game/techs
lrwxrwxrwx 1 myname myname     30 2008-04-02 10:13 tilesets -> ../../data/glest_game/tilesets
myname@myname-desktop:~/gae/mk/linux$

No executable. Here's the last about 50 lines of the compile...

Code: [Select]
glest_game/types/effect_type.h:71: warning: ‘class Glest::Game::EffectTypeFlags’ has virtual functions but non-virtual destructor
glest_game/types/flags.h: In instantiation of ‘Glest::Game::XmlBasedFlags<Glest::Game::AttackSkillPreference, 5u, unsigned int>’:
glest_game/types/command_type.h:70:   instantiated from here
glest_game/types/flags.h:132: warning: ‘class Glest::Game::XmlBasedFlags<Glest::Game::AttackSkillPreference, 5u, unsigned int>’ has virtual functions but non-virtual destructor
glest_game/types/command_type.h:70: warning: ‘class Glest::Game::AttackSkillPreferences’ has virtual functions but non-virtual destructor
glest_game/types/command_type.h:208: warning: ‘class Glest::Game::AttackCommandTypeBase’ has virtual functions but non-virtual destructor
glest_game/../shared_lib/include/../include/platform/socket.h: In member function ‘void Shared::Platform::NetworkDataBuffer::write(Shared::Platform::float32)’:
glest_game/../shared_lib/include/../include/platform/socket.h:111: warning: dereferencing type-punned pointer will break strict-aliasing rules
glest_game/type_instances/unit.h: At global scope:
glest_game/type_instances/unit.h:129: warning: ‘class Glest::Game::Unit’ has virtual functions but non-virtual destructor
glest_game/global/config.h: In function ‘void __tcf_0(void*)’:
glest_game/global/config.h:28: warning: inlining failed in call to ‘Glest::Game::Config::~Config()’: --param max-inline-insns-single limit reached
glest_game/global/config.h:95: warning: called from here
C++ ./build/i686-pc-linux-gnu/optimize/glest_game/world/surface_atlas.o
glest_game/types/flags.h: In instantiation of ‘Glest::Game::XmlBasedFlags<Glest::Game::Field, 2u, unsigned int>’:
glest_game/types/unit_stats_base.h:49:   instantiated from here
glest_game/types/flags.h:132: warning: ‘class Glest::Game::XmlBasedFlags<Glest::Game::Field, 2u, unsigned int>’ has virtual functions but non-virtual destructor
glest_game/types/unit_stats_base.h:49: warning: ‘class Glest::Game::Fields’ has virtual functions but non-virtual destructor
glest_game/types/flags.h: In instantiation of ‘Glest::Game::XmlBasedFlags<Glest::Game::Property, 3u, unsigned int>’:
glest_game/types/unit_stats_base.h:72:   instantiated from here
glest_game/types/flags.h:132: warning: ‘class Glest::Game::XmlBasedFlags<Glest::Game::Property, 3u, unsigned int>’ has virtual functions but non-virtual destructor
glest_game/types/unit_stats_base.h:72: warning: ‘class Glest::Game::UnitProperties’ has virtual functions but non-virtual destructor
glest_game/types/unit_stats_base.h:89: warning: ‘class Glest::Game::UnitStatsBase’ has virtual functions but non-virtual destructor
glest_game/types/unit_stats_base.h:218: warning: ‘class Glest::Game::EnhancementTypeBase’ has virtual functions but non-virtual destructor
glest_game/types/flags.h: In instantiation of ‘Glest::Game::XmlBasedFlags<Glest::Game::EffectTypeFlag, 22u, unsigned int>’:
glest_game/types/effect_type.h:71:   instantiated from here
glest_game/types/flags.h:132: warning: ‘class Glest::Game::XmlBasedFlags<Glest::Game::EffectTypeFlag, 22u, unsigned int>’ has virtual functions but non-virtual destructor
glest_game/types/effect_type.h:71: warning: ‘class Glest::Game::EffectTypeFlags’ has virtual functions but non-virtual destructor
glest_game/../shared_lib/include/../include/platform/socket.h: In member function ‘void Shared::Platform::NetworkDataBuffer::write(Shared::Platform::float32)’:
glest_game/../shared_lib/include/../include/platform/socket.h:111: warning: dereferencing type-punned pointer will break strict-aliasing rules
glest_game/types/flags.h: At global scope:
glest_game/types/flags.h: In instantiation of ‘Glest::Game::XmlBasedFlags<Glest::Game::AttackSkillPreference, 5u, unsigned int>’:
glest_game/types/command_type.h:70:   instantiated from here
glest_game/types/flags.h:132: warning: ‘class Glest::Game::XmlBasedFlags<Glest::Game::AttackSkillPreference, 5u, unsigned int>’ has virtual functions but non-virtual destructor
glest_game/types/command_type.h:70: warning: ‘class Glest::Game::AttackSkillPreferences’ has virtual functions but non-virtual destructor
glest_game/types/command_type.h:208: warning: ‘class Glest::Game::AttackCommandTypeBase’ has virtual functions but non-virtual destructor
glest_game/type_instances/unit.h:129: warning: ‘class Glest::Game::Unit’ has virtual functions but non-virtual destructor
...skipped glest for lack of libglestlib.a...
...failed updating 1 target(s)...
...skipped 2 target(s)...
...updated 141 target(s)...


Specifically, why did it skip glest for lack of libglestlib.a? HELP!!


!Dr.Dixie!
« Last Edit: 1 January 1970, 00:00:00 by Dr.Dixie »

daniel.santos

  • Guest
(No subject)
« Reply #178 on: 2 April 2008, 17:52:04 »
Well something failed much higher up in the compile with an actual "error"

But what I meant is, when you RUN GLEST, are you running it from the console or are you clicking on it?  You said you compiled it last time (0.2.2) but when you ran it, it exited.  It shouldn't exit without an error message, but the error message will be printed on the console.

Also, when you are posting your build problems, ALWAYS specify which version you are building.

Sorry I missed your question about what file to put the previously posted code in.  That actually doesn't get put in a file, you just type it before the configure command.  But it's not really important anyway, it's just a performance tweak (one that many will question the value of anyway).

But for right now, edit the file mk/linux/Jamrules and remove the text "$(COMPILER_WARNING_FLAGS)" without the quotes.  This should stop all of the warnings you are getting (and it's wierd, because I do not get any of those warnings).  Also, PLEASE specify which version you are building.  I need to see the error (it will have the word "error" somewhere).
« Last Edit: 1 January 1970, 00:00:00 by daniel.santos »

Dr.Dixie

  • Guest
(No subject)
« Reply #179 on: 2 April 2008, 18:13:59 »
Quote
Well something failed much higher up in the compile with an actual "error"

But what I meant is, when you RUN GLEST, are you running it from the console or are you clicking on it? You said you compiled it last time (0.2.2) but when you ran it, it exited. It shouldn't exit without an error message, but the error message will be printed on the console.

Also, when you are posting your build problems, ALWAYS specify which version you are building.

Sorry I missed your question about what file to put the previously posted code in. That actually doesn't get put in a file, you just type it before the configure command. But it's not really important anyway, it's just a performance tweak (one that many will question the value of anyway).

But for right now, edit the file mk/linux/Jamrules and remove the text "$(COMPILER_WARNING_FLAGS)" without the quotes. This should stop all of the warnings you are getting (and it's wierd, because I do not get any of those warnings). Also, PLEASE specify which version you are building. I need to see the error (it will have the word "error" somewhere).


No, I am not running it from the terminal. I think I've done it, but I'll do it now...
Hmm... it says "bash: run: command now found" when I type glest while in the glest_game folder. (I copied the glestadv.ini, glest and the data folder into the glest_game folder.)

I think for at least the last attempt, and perhaps for the previous one, I used 0.2.3


!Dr.Dixie!
« Last Edit: 1 January 1970, 00:00:00 by Dr.Dixie »

daniel.santos

  • Guest
(No subject)
« Reply #180 on: 2 April 2008, 18:47:55 »
ok, you probably have to type it like this:
Code: [Select]
./glest
If you are around later, I can meet you in irc and see if we can get it worked out.  I have to step out for a bit right now and I wont be back until about 4 PM central time (I presume you are in the states too).

EDIT: Oh, I think I know what's wrong.  The source distribution I send out doesn't include all of the files you need to run gae, it depends upon you already having them from Glest 3.1.2 or from subversion.  If you want to keep it simple, here is what you can do.  First, start in a new directory just in case :)
Code: [Select]
svn co https://glest.codemonger.org/svn/repos/gae/tags/0.2.3 gae-svn
cd gae-svn/mk/linux
./autogen.sh
./configure # add whatever you usually add here
jam -j2
./glest
As long as nothing fails, this will let you run the glest executable directly from the mk/linux directory.  Also, the next time there's an update, you only download the source files that have changed.  For instance, when 0.2.4 is done, you'll type this:
Code: [Select]
cd <where ever you started>/gae-svn
svn switch https://glest.codemonger.org/svn/repos/gae/tags/0.2.4
cd mk/linux
jam -j2


You may get prompted about an invalid certificate or something, just tell it "yes" or whatever it wants to continue.
« Last Edit: 1 January 1970, 00:00:00 by daniel.santos »

Dr.Dixie

  • Guest
(No subject)
« Reply #181 on: 3 April 2008, 02:19:23 »
Same thing happened.
Code: [Select]
...skipped glest for lack of libglestlib.a...
...failed updating 1 target(s)...
...skipped 2 target(s)...
...updated 141 target(s)...


I'm wondering whether you've actually tried it yourself on a 32 bit Ubuntu...
Er, and, FYI, I'm STILL using 0.2.3


!Dr.DIxie!
« Last Edit: 1 January 1970, 00:00:00 by Dr.Dixie »

jrepan

  • Guest
(No subject)
« Reply #182 on: 3 April 2008, 12:46:18 »
Quote from: "Dr.Dixie"
Same thing happened.
Code: [Select]
...skipped glest for lack of libglestlib.a...
...failed updating 1 target(s)...
...skipped 2 target(s)...
...updated 141 target(s)...

I'm wondering whether you've actually tried it yourself on a 32 bit Ubuntu...
Er, and, FYI, I'm STILL using 0.2.3


!Dr.DIxie!

Show full compile log.

EDIT: I fixed errors that I get. I made patch: http://jrepan.pri.ee/gae.patch
« Last Edit: 1 January 1970, 00:00:00 by jrepan »

daniel.santos

  • Guest
(No subject)
« Reply #183 on: 3 April 2008, 13:45:59 »
Thanks jrepan.  I'm integrating your patch. Although I don't quite understand why you were having problems with the includes, I guess it's some difference in what other header files include.  Also, I have to be careful about those zlib data types, apparently, I need to make sure that I always cast them so they don't blow up on 32 bit systems.

Dr. Dixie, can you please post the build log (preferably, after disabling the warnings :) )

I'm going to do an 0.2.3a to try to clear up some of these issues as well as one of the command bugs I fixed.
« Last Edit: 1 January 1970, 00:00:00 by daniel.santos »

Dr.Dixie

  • Guest
(No subject)
« Reply #184 on: 3 April 2008, 14:41:50 »
I can't post a full log of it unless I know where it is, because the console only shows the last few hundred lines. And I don't know how to disable the warnings. Ok. I think I made it so it'll allow 8000 lines of text... I'm going to redo the svn thing...

*edit* BTW, what's the Glest IRC channel?


!Dr.Dixie!
« Last Edit: 3 April 2008, 14:49:37 by Dr.Dixie »

ZaggyDad

  • Guest
(No subject)
« Reply #185 on: 3 April 2008, 14:42:02 »
It's still got the villagers (and technicians, and initiates, of course ;) ) repairing one cell away when you TELL them to repair something.

~Zaggy
« Last Edit: 1 January 1970, 00:00:00 by ZaggyDad »

daniel.santos

  • Guest
(No subject)
« Reply #186 on: 3 April 2008, 14:43:43 »
Dr. Dixie, please switch to the 0.2.3a tag, clean and recompile
Code: [Select]
cd <where ever it is>/gae-svn
# might want to rename your mk/linux/glestadv.ini file 1st
svn switch https://glest.codemonger.org/svn/repos/gae/tags/0.2.3a
cd mk/linux
jam maintainer-clean
./autogen.sh
./configure
jam
./glest

If you get any errors, please post them.  This should eliminate the problem with tons of warnings as well, but let me know if it doesn't.  I originally turned those warnings on to make sure I wasn't trying to inline stuff that was too big, but apparently, not everybody's compiler has the same defaults.
« Last Edit: 1 January 1970, 00:00:00 by daniel.santos »

daniel.santos

  • Guest
(No subject)
« Reply #187 on: 3 April 2008, 14:48:23 »
Yea, thanks ZaggyDad.  I'm aware of it, I just haven't gotten back to it.  Since this part of the code has a changed a lot, I've been revamping it.  I've already done some of this, but I'm still going to mostly rewrite the updateBuild() and updateRepair() functions from scratch.  Since they've been modified so much, it's gotten a bit less than pretty. :)  It's doing a little better already.  If you remember originally, units would only build from the top left corner of the building.  It's a sensitive topic to tell units to find the nearest spot that you can to the building and go there.  What I found was that if the path finder couldn't get there, but it got next to it, it would say that it had "arrived", which is what's causing the "remote repairing" problem.  I think it can happen with building as well (not 100% certain).
« Last Edit: 1 January 1970, 00:00:00 by daniel.santos »

daniel.santos

  • Guest
(No subject)
« Reply #188 on: 3 April 2008, 14:55:28 »
Quote from: "Dr.Dixie"
I can't post a full log of it unless I know where it is, because the console only shows the last few hundred lines. And I don't know how to disable the warnings. Ok. I think I made it so it'll allow 8000 lines of text... I'm going to redo the svn thing...
Another thing you can do is redirect it into a file like this
Code: [Select]
jam > 1million_errors.txtand email it to me if it's too big to post.

Quote from: "Dr.Dixie"
*edit* BTW, what's the Glest IRC channel?
irc://irc.freenode.net/glest and I'm there now :)
« Last Edit: 1 January 1970, 00:00:00 by daniel.santos »

Dr.Dixie

  • Guest
(No subject)
« Reply #189 on: 3 April 2008, 14:56:57 »
Tada! I'm not sure this is needed, but, hey, I don't know what to do!
Code: [Select]
myname@myname-desktop:~/GAE 0.2.3 test/gae-svn/mk/linux$ jam maintainer-clean
./Jamconfig: No such file or directory
Couldn't find config. Please run 'configure' first.
myname@myname-desktop:~/GAE 0.2.3 test/gae-svn/mk/linux$



!Dr.Dixie!
« Last Edit: 1 January 1970, 00:00:00 by Dr.Dixie »

daniel.santos

  • Guest
(No subject)
« Reply #190 on: 3 April 2008, 18:55:11 »
Ok, here's 0.2.3a that fixes a few small problems (no new features).  Network play still has problems :) )[/li]
[li]Fixed problem that occurred when a unit had more than one attack command, but the 1st one was unavailable.  This caused the attack hotkey to not work and also if you had that unit selected with other units that could attack, you would not have an attack command available.  This is fixed (mostly, it effected the Lich in FPM).[/li][/list]
Four Path Magitech v0.1.5a Changes
  • Graveyard is now bigger (and the model is awesome, you gotta check it out).
  • Finally renamed "zombie giant" to "zombie".
  • Tweaked that damn skeleton some more (downgraded this time, he was surviving slightly too well).
« Last Edit: 1 January 1970, 00:00:00 by daniel.santos »

Dr.Dixie

  • Guest
(No subject)
« Reply #191 on: 3 April 2008, 20:33:57 »
Daniel, it would be helpful for me, if not more people, if you used something like zip or tgz to zip the stuff, because, for some reason, the default zip tool in Ubuntu isn't able to do rars. I probably ought to get a different zipper, but I'd rather only have the one I've got...


!Dr.Dixie!
« Last Edit: 1 January 1970, 00:00:00 by Dr.Dixie »

daniel.santos

  • Guest
(No subject)
« Reply #192 on: 3 April 2008, 22:03:24 »
Quote from: "Dr.Dixie"
Daniel, it would be helpful for me, if not more people, if you used something like zip or tgz to zip the stuff, because, for some reason, the default zip tool in Ubuntu isn't able to do rars. I probably ought to get a different zipper, but I'd rather only have the one I've got...


!Dr.Dixie!

Yea, I actually do zip, rar and bz2 for most of the packages (I have it scripted), but I only post links in one format.  Go to http://glest.codemonger.org
« Last Edit: 1 January 1970, 00:00:00 by daniel.santos »

Dr.Dixie

  • Guest
(No subject)
« Reply #193 on: 3 April 2008, 22:23:20 »
Oh.


!Dr.Dixie!
« Last Edit: 1 January 1970, 00:00:00 by Dr.Dixie »

daniel.santos

  • Guest
(No subject)
« Reply #194 on: 3 April 2008, 22:35:00 »
whoops, I forgot to rename a file in subversion in the last FPM mod.  If you are using FPM, please use 0.1.5b.

Four Path Magitech v0.1.5bFor other archive formats & Linux binaries, visit http://http://glest.codemonger.org.
« Last Edit: 1 January 1970, 00:00:00 by daniel.santos »

orion

  • Guest
(No subject)
« Reply #195 on: 4 April 2008, 02:57:07 »
How do you guys like this web design?
I'm looking for some comments.



Tell me what you think.
« Last Edit: 1 January 1970, 00:00:00 by orion »

daniel.santos

  • Guest
(No subject)
« Reply #196 on: 4 April 2008, 17:12:09 »
looks fine with me :)  If you need help making one, send me an email  and we'll try to meet up in chat or something.  I'm running some updates on beaker (my server's real name) right now and I'm going to take it down at some point and upgrade apache, but for the most part it's ready to go.
« Last Edit: 1 January 1970, 00:00:00 by daniel.santos »

rishenchen

  • Guest
(No subject)
« Reply #197 on: 4 April 2008, 19:48:13 »
Really good web design orion ^^. But since ur so active on the board, why arent u ever on IRC?
« Last Edit: 1 January 1970, 00:00:00 by rishenchen »

ZaggyDad

  • Guest
(No subject)
« Reply #198 on: 4 April 2008, 23:49:57 »
You should make it so that the walls rotate towards the end point on the line of walls. Although maybe in a slightly different way.

And make it so that you can trash units.

~Zaggy
« Last Edit: 1 January 1970, 00:00:00 by ZaggyDad »

orion

  • Guest
(No subject)
« Reply #199 on: 5 April 2008, 16:55:17 »
Cool. I'm glad you guys like it. The other website design was getting on my nerves and I'm a big perfectionist. So I made a new design. I'm probably going to make an Enter Page like glest.org has.

Quote from: "Daniel.Santos"
looks fine with me  (very nice). Now send me a public key so I can get you set up!!!!!  If you need help making one, send me an email and we'll try to meet up in chat or something. I'm running some updates on beaker (my server's real name) right now and I'm going to take it down at some point and upgrade apache, but for the most part it's ready to go.

Thanks. The thing is, that picture is a photoshop document; it's not a website...yet. Making the picture was the hard part and, believe it or not, creating the website out of the picture is the easy part. It'll be finished soon and when it's finished then I'll set up the public key (I'll need your help on that Daniel).

Quote from: "Rishenchen"
Really good web design orion ^^. But since ur so active on the board, why arent u ever on IRC?


I have been on the board, but whenever I log on, everybody is always idle. I'll try logging on more often. Around what time are you on Rishen?
« Last Edit: 1 January 1970, 00:00:00 by orion »

 

anything