Author Topic: can't find glestadv-error.log  (Read 6010 times)

Tununias

  • Guest
can't find glestadv-error.log
« on: 8 May 2011, 23:54:08 »
I've been trying to add more tech trees to GAE, but when I try to use them I get an error message.
"Crash!
Exception: The techtree could not be loaded. See glestadv-error.log"
I can't find the file. I scanned my computer for it, but says it's not there.

Is there something I need to do in GAE differently to add tech trees than MG? The tech trees work find in MG, and I heard that mods made for MG work in GAE.

Removed unnecessary smilies. -Ultifd
« Last Edit: 9 May 2011, 00:07:27 by ultifd »

John.d.h

  • Moderator
  • Airship
  • ********
  • Posts: 3,757
  • I have to go now. My planet needs me.
    • View Profile
Re: can't find glestadv-error.log
« Reply #1 on: 9 May 2011, 02:50:12 »
By default:
Code: [Select]
~/.glestadv/glestadv-error.log
To use mods in GAE, read here: https://forum.megaglest.org/index.php?topic=5911.0

Tununias

  • Guest
Re: can't find glestadv-error.log
« Reply #2 on: 9 May 2011, 06:55:23 »
By default:
Code: [Select]
~/.glestadv/glestadv-error.log
To use mods in GAE, read here: https://forum.megaglest.org/index.php?topic=5911.0
I have no idea how to use ~/.glestadv/addons (I know where the folder is, I just can't figure out how to use it.)
The only thing I can think of is the magitech tree has lang folders and lng files and the tech tree I tried to add didn't.

silnarm

  • Local Moderator
  • Behemoth
  • ********
  • Posts: 1,373
    • View Profile
Re: can't find glestadv-error.log
« Reply #3 on: 9 May 2011, 08:20:05 »
If you go 'one folder up' from addons you'll be in the 'config' dir, this is where the error log can be found, you probably just missed a new resource maybe?
Glest Advanced Engine - Code Monkey

Timeline | Downloads

John.d.h

  • Moderator
  • Airship
  • ********
  • Posts: 3,757
  • I have to go now. My planet needs me.
    • View Profile
Re: can't find glestadv-error.log
« Reply #4 on: 9 May 2011, 17:35:44 »
It might also be that the add-on isn't packaged for "just drop it in" functionality.  It needs to replicate the right folder structure in order to work.  What add-on(s) is/are giving you trouble?

Tununias

  • Guest
Re: can't find glestadv-error.log
« Reply #5 on: 9 May 2011, 22:52:54 »
It might also be that the add-on isn't packaged for "just drop it in" functionality.  It needs to replicate the right folder structure in order to work.  What add-on(s) is/are giving you trouble?
I don't know what you mean. I'm trying to copy my techtree from MG to GAE. I copied the techtree folder into the techs folder for GAE. The only thing I can think of is it doesn't have lang folders or lng files. Also, glestadv-error.log only says "Glest Advanced Engine: Error log file."

John.d.h

  • Moderator
  • Airship
  • ********
  • Posts: 3,757
  • I have to go now. My planet needs me.
    • View Profile
Re: can't find glestadv-error.log
« Reply #6 on: 10 May 2011, 01:19:11 »
Those lng files are largely irrelevant.  They're nice to have, but not necessary (they merely provide language text).

If you're copying the Megapack over to GAE, create a new folder in ~/.glestadv/addons, and put MG's techs folder inside of it, so then the folder structure should look like this:
Code: [Select]
~/.glestadv/addons/<call_it_whatever_you_like>/techs/megapack/factions/

Make sense?

Tununias

  • Guest
Re: can't find glestadv-error.log
« Reply #7 on: 10 May 2011, 17:46:57 »
Those lng files are largely irrelevant.  They're nice to have, but not necessary (they merely provide language text).

If you're copying the Megapack over to GAE, create a new folder in ~/.glestadv/addons, and put MG's techs folder inside of it, so then the folder structure should look like this:
Code: [Select]
~/.glestadv/addons/<call_it_whatever_you_like>/techs/megapack/factions/

Make sense?
the tech tree won't show up when I start GAE.

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: can't find glestadv-error.log
« Reply #8 on: 10 May 2011, 18:38:19 »
Since people can't see what's on your computer you might want to paste the output of this command to a pastebin:

Code: [Select]
ls -lLR ~/.glestae/addons/
Note also that it may also be ~/.glestae/ - not ~/.glestadv/ - where per user configuration and data is stored on your system (depends on how GAE was compiled).
« Last Edit: 10 May 2011, 18:42:27 by tomreyn »
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

Tununias

  • Guest
Re: can't find glestadv-error.log
« Reply #9 on: 10 May 2011, 20:49:35 »
Since people can't see what's on your computer you might want to paste the output of this command to a pastebin:

Code: [Select]
ls -lLR ~/.glestae/addons/
Note also that it may also be ~/.glestae/ - not ~/.glestadv/ - where per user configuration and data is stored on your system (depends on how GAE was compiled).
It said "ls: cannot access /home/andrew/.glestae/addons/: No such file or directory" with the original code. When I changed glestae to glestadv, it worked. But I'm not able to paste it all. The tech tree has 49 factions total.
(update)
I figured out how to paste it all but I got the error "Invalid POST request. Pasted text must be between 10 characters and 256 Kb" I could always compress it and upload it somewhere else, but I don't know how helpful it would be.
« Last Edit: 10 May 2011, 21:06:55 by Tununias »

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: can't find glestadv-error.log
« Reply #10 on: 10 May 2011, 21:47:42 »
The tech tree has 49 factions total.
49?! Are you sure? Glest doesn't even have nearly that many factions in every mod ever made so far.

I figured out how to paste it all but I got the error "Invalid POST request. Pasted text must be between 10 characters and 256 Kb" I could always compress it and upload it somewhere else, but I don't know how helpful it would be.
The file is too large for pastebin. If under 50k characters, post it here inside a [code] tag. Otherwise, upload save the output of the command and upload it to a site like Mediafire.
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

Tununias

  • Guest
Re: can't find glestadv-error.log
« Reply #11 on: 10 May 2011, 22:20:33 »
The tech tree has 49 factions total.
49?! Are you sure? Glest doesn't even have nearly that many factions in every mod ever made so far.

I figured out how to paste it all but I got the error "Invalid POST request. Pasted text must be between 10 characters and 256 Kb" I could always compress it and upload it somewhere else, but I don't know how helpful it would be.
The file is too large for pastebin. If under 50k characters, post it here inside a [code] tag. Otherwise, upload save the output of the command and upload it to a site like Mediafire.
africa                egypt                        japanese   plant_life
armies of the wastes  elves                        magic      romans
aztec                 elves of ulthuan and lorien  man_10     science
barbarians            european                     mario      tech
boss                  garden                       martians   the empire
british               gauls                        moon       undead
bugs                  girls                        mushrooms  weather
canadians             glestTW                      norsemen   Western
china                 goths                        orcs       winter_men
circus                greece                       PC         woodsmen
Cool_Magic            humans                       penguin
crusaders             imperial                     persian
dwarves               indian                       pirates
I think it's 3.1GB altogether.

the glestadv-error.log file is http://glest.pzt.me/4mk6
and this is the output http://www.mediafire.com/?stiwb3kc8x4sosd
« Last Edit: 10 May 2011, 22:32:02 by Tununias »

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: can't find glestadv-error.log
« Reply #12 on: 10 May 2011, 22:39:20 »
Are they edited properly then? Those factions are not all compatible if combined together, and some of those factions are poorly made and not recommended by the Glest community. Does GAE work with the default Magitech?
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

Tununias

  • Guest
Re: can't find glestadv-error.log
« Reply #13 on: 10 May 2011, 22:50:36 »
Are they edited properly then? Those factions are not all compatible if combined together, and some of those factions are poorly made and not recommended by the Glest community. Does GAE work with the default Magitech?
I've modified them all to work in one tech tree.(I never liked the idea of separating factions into tech trees) The Magitech tech tree works fine in GAE.
« Last Edit: 10 May 2011, 22:54:32 by Tununias »

John.d.h

  • Moderator
  • Airship
  • ********
  • Posts: 3,757
  • I have to go now. My planet needs me.
    • View Profile
Re: can't find glestadv-error.log
« Reply #14 on: 10 May 2011, 23:38:33 »
Code: [Select]
    Glest Advanced Engine: Error log file. 
     
    No files found: techs/everything/factions/Western/units/*. 
    No files found: techs/everything/factions/Western/upgrades/*. 
    No files found: techs/everything/factions/european/units/*. 
    No files found: techs/everything/factions/european/upgrades/*. 
    No files found: techs/everything/factions/japanese/units/*. 
    No files found: techs/everything/factions/japanese/upgrades/*. 
    XML Error in techs/everything/resources/food_morphlings/food_morphlings.xml: 
    Missing or wrong name of XML file. 
    XML Error in techs/everything/resources/food_nikir/food_nikir.xml: 
    Missing or wrong name of XML file. 
    XML Error in techs/everything/resources/food_rifemorean/food_rifemorean.xml: 
    Missing or wrong name of XML file. 
    XML Error in techs/everything/resources/grace/grace.xml: 
    Missing or wrong name of XML file. 
    XML Error in techs/everything/resources/souls/souls.xml: 
    Missing or wrong name of XML file. 
    XML Error in techs/everything/factions/Western/Western.xml: 
    File missing or wrongly named. 
    XML Error in techs/everything/factions/british/units/cannon/cannon.xml: 
    Error opening wav file: techs/everything/factions/british/units/cannon/sounds/catapult_attack.wav 
    PHYSFS_openRead failed: techs/everything/factions/british/units/cannon/sounds/catapult_attack.wav 
    Error: Permission denied 
    XML Error in techs/everything/factions/european/european.xml: 
    File missing or wrongly named. 
    XML Error in techs/everything/factions/japanese/japanese.xml: 
    File missing or wrongly named.

Did you transfer over the resources as well?  Because those seem to be missing.  Try removing the offending factions and see what happens: Western, European, Japanese, Morphlings, Nikir, Rifemorean, British, and Elves.  Then if that works, we can start adding them back and fixing the problems.

Tununias

  • Guest
Re: can't find glestadv-error.log
« Reply #15 on: 11 May 2011, 02:51:38 »
Code: [Select]
Glest Advanced Engine: Error log file.

No files found: techs/everything/factions/woodsmen/units/*.
No files found: techs/everything/factions/woodsmen/upgrades/*.
XML Error in techs/everything/resources/food_morphlings/food_morphlings.xml:
Missing or wrong name of XML file.
XML Error in techs/everything/resources/food_nikir/food_nikir.xml:
Missing or wrong name of XML file.
XML Error in techs/everything/resources/food_rifemorean/food_rifemorean.xml:
Missing or wrong name of XML file.
XML Error in techs/everything/resources/grace/grace.xml:
Missing or wrong name of XML file.
XML Error in techs/everything/resources/souls/souls.xml:
Missing or wrong name of XML file.
XML Error in techs/everything/factions/canadians/units/cannon/cannon.xml:
Error opening wav file: techs/everything/factions/canadians/units/cannon/sounds/catapult_attack.wav
PHYSFS_openRead failed: techs/everything/factions/canadians/units/cannon/sounds/catapult_attack.wav
Error: Permission denied
Error loading techs/everything/factions/canadians/units/maple_tree/models/foilage.tga
PHYSFS_openRead failed: techs/everything/factions/canadians/units/maple_tree/models/foilage.tga
Error: Permission denied
Error loading techs/everything/factions/canadians/units/maple_tree/models/bark.tga
PHYSFS_openRead failed: techs/everything/factions/canadians/units/maple_tree/models/bark.tga
Error: Permission denied
Error loading techs/everything/factions/canadians/units/maple_tree/models/foilage.tga
PHYSFS_openRead failed: techs/everything/factions/canadians/units/maple_tree/models/foilage.tga
Error: Permission denied
Error loading techs/everything/factions/canadians/units/maple_tree/models/bark.tga
PHYSFS_openRead failed: techs/everything/factions/canadians/units/maple_tree/models/bark.tga
Error: Permission denied
Error loading techs/everything/factions/canadians/units/maple_tree/models/bark.tga
PHYSFS_openRead failed: techs/everything/factions/canadians/units/maple_tree/models/bark.tga
Error: Permission denied
Error loading techs/everything/factions/canadians/units/maple_tree/models/foilage.tga
PHYSFS_openRead failed: techs/everything/factions/canadians/units/maple_tree/models/foilage.tga
Error: Permission denied
Error loading techs/everything/factions/canadians/units/maple_tree/models/maple_leaf.tga
PHYSFS_openRead failed: techs/everything/factions/canadians/units/maple_tree/models/maple_leaf.tga
Error: Permission denied
Error loading techs/everything/factions/canadians/units/maple_tree/models/bark.tga
PHYSFS_openRead failed: techs/everything/factions/canadians/units/maple_tree/models/bark.tga
Error: Permission denied
Error loading techs/everything/factions/canadians/units/maple_tree/models/foilage.tga
PHYSFS_openRead failed: techs/everything/factions/canadians/units/maple_tree/models/foilage.tga
Error: Permission denied
XML Error in techs/everything/factions/woodsmen/woodsmen.xml:
File missing or wrongly named.
This is what I got after I removed the factions. I already removed Morphlings, Nikir, Rifemorean before, since they were too weak compared to the other factions.

John.d.h

  • Moderator
  • Airship
  • ********
  • Posts: 3,757
  • I have to go now. My planet needs me.
    • View Profile
Re: can't find glestadv-error.log
« Reply #16 on: 11 May 2011, 04:35:37 »
Err... maybe a silly question, but did you somehow change the owner of the files to someone other than you (root, perhaps)?

Tununias

  • Guest
Re: can't find glestadv-error.log
« Reply #17 on: 11 May 2011, 13:33:58 »
Err... maybe a silly question, but did you somehow change the owner of the files to someone other than you (root, perhaps)?
I'm not sure.
I typed sudo nautilus to use nautilus with root access, and placed the tech tree in /usr/share/glestae/techs.

wciow

  • Behemoth
  • *******
  • Posts: 968
    • View Profile
Re: can't find glestadv-error.log
« Reply #18 on: 11 May 2011, 14:38:45 »
Trying to merge 50 seperate factions into one techtree is gonna take ALOT of work  :confused: Any factions which rely on a changed resource set (other than gold/stone/wood) will need to be modified.
Check out my new Goblin faction - https://forum.megaglest.org/index.php?topic=9658.0

John.d.h

  • Moderator
  • Airship
  • ********
  • Posts: 3,757
  • I have to go now. My planet needs me.
    • View Profile
Re: can't find glestadv-error.log
« Reply #19 on: 11 May 2011, 17:52:02 »
Err... maybe a silly question, but did you somehow change the owner of the files to someone other than you (root, perhaps)?
I'm not sure.
I typed sudo nautilus to use nautilus with root access, and placed the tech tree in /usr/share/glestae/techs.
Oh... that's why.  In that case, I think you probably did scramble your permissions.  sudo has a bad habit of doing that.  Since it's a root operation, the end product (in this case, the new files) are under root's ownership, which means they can only be executed under root's permission.  ~/.glestadv/addons is there basically so that you don't have to use root to add mods, and so all your permissions stay intact.  Just for clarity, I'm talking about /home/<your_name>/.glestadv, not /usr/share/glestae.

Here is what I would do:

1. Check who owns usr/share/glestae/techs/everything/ (or whatever you called the new folder). http://yfrog.com/n3screenshot3qtsp
2. Play GAE as root.  If it works, it will assure that it is actually a permission problem and not something else.
3. As yourself (not root), move the relevant tech tree files to ~/.glestadv/addons/.  Since you're doing it as yourself, it should make you the owner of the new files.
4. After that, you should be able to (as root) remove the unneeded remnant in /usr/share/glestae.  This should not be strictly necessary, but you don't really need an extra couple gigs of clutter lying around.
5. Instead of 3 and 4, you may be able to change the owner of all the files in /usr/share/glestae/techs/everything/ from root to yourself, but I don't exactly know how to do that or if it would actually work.

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: can't find glestadv-error.log
« Reply #20 on: 11 May 2011, 22:01:14 »
Leaning towards Wciow here. It's a lot of work to merge that many factions and simply copying and pasting as you probably did is not going to cut it.
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

Yggdrasil

  • Local Moderator
  • Ornithopter
  • ********
  • Posts: 408
    • View Profile
Re: can't find glestadv-error.log
« Reply #21 on: 11 May 2011, 22:44:24 »
5. Instead of 3 and 4, you may be able to change the owner of all the files in /usr/share/glestae/techs/everything/ from root to yourself, but I don't exactly know how to do that or if it would actually work.
Don't change the ownership, just fix the permissions. World/others needs to be able to read.

Code: [Select]
$ sudo find /usr/share/glestae -type f -exec chmod 644 '{}' +
$ sudo find /usr/share/glestae -type d -exec chmod 755 '{}' +
Should fix the permissions. But John.d.h is right. Don't mess up your system folders, use the addons folder!

Tununias

  • Guest
Re: can't find glestadv-error.log
« Reply #22 on: 11 May 2011, 22:53:31 »
Trying to merge 50 seperate factions into one techtree is gonna take ALOT of work  :confused: Any factions which rely on a changed resource set (other than gold/stone/wood) will need to be modified.
Yeah, but it's worth the extra effort. And I added the gradually over several months. For most factions, you just need to check the mod's tech tree for any extra attack and armor types, and add them.
« Last Edit: 11 May 2011, 22:58:20 by Tununias »

Tununias

  • Guest
Re: can't find glestadv-error.log
« Reply #23 on: 11 May 2011, 23:10:54 »
Ok It works now. Thank you for your help. :)

John.d.h

  • Moderator
  • Airship
  • ********
  • Posts: 3,757
  • I have to go now. My planet needs me.
    • View Profile
Re: can't find glestadv-error.log
« Reply #24 on: 12 May 2011, 00:53:37 »
You're probably not replicating the folder structure.

Code: [Select]
~/.glestadv/addons/<this is your addon>/techs/<put your tech tree here>/factions

Don't get the addon and the tech tree confused.  They are related but disparate things!

 

anything