Author Topic: problems with mod extraction in windows?  (Read 2167 times)

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
problems with mod extraction in windows?
« on: 13 May 2011, 14:37:58 »
Hagekura and someone else had problems installing the japanese tech tree from the mod section.
Downloading was fine, but it looks like the extraction failed. See here:
https://forum.megaglest.org/index.php?topic=6103.msg72961#msg72961

Is there a problem in windows extracting mods automatically?
Can anyone establish that it works/works not  in windows?
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

ultifd

  • Airship
  • ********
  • Posts: 4,443
  • The Glest Video Guy :) The one and only. :P
    • View Profile
    • My Youtube Channel
Re: problems with mod extraction in windows?
« Reply #1 on: 13 May 2011, 21:50:04 »
Fine for me, Windows 7 32-bit.

Hagekura

  • Archmage
  • ******
  • Posts: 524
    • View Profile
    • Hageus_Iaponicus(@Hageus_Hagekura)さん | Twitter
Re: problems with mod extraction in windows?
« Reply #2 on: 13 May 2011, 22:51:22 »
For reference, The japanese guy who also has same problem on direct downloading uses Windows XP(32bit). I'm also using XP 32bit.
Bushido to iu wa shinu koto to mitsuketari.

Japanese Faction Mod

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: problems with mod extraction in windows?
« Reply #3 on: 14 May 2011, 16:17:30 »
Can you confirm that the path to your appdata folder in windows does not contain non ascii characters? (the folder where mods are stored by default in windows)?

Hagekura

  • Archmage
  • ******
  • Posts: 524
    • View Profile
    • Hageus_Iaponicus(@Hageus_Hagekura)さん | Twitter
Re: problems with mod extraction in windows?
« Reply #4 on: 16 May 2011, 10:55:33 »
Can you confirm that the path to your appdata folder in windows does not contain non ascii characters? (the folder where mods are stored by default in windows)?
Hi, In the XP megaglest's default user data path is under C:\Documents and Settings\ .

The japanese guy confirmed that Direct Download works when he create C:\test\megaglest\ and copy all the data files of $APPDATA\megaglest\ to the test folder, then edit the line in glest.ini "UserData_Root=C:\test\megaglest\" on trial. then it worked.
Bushido to iu wa shinu koto to mitsuketari.

Japanese Faction Mod

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: problems with mod extraction in windows?
« Reply #5 on: 16 May 2011, 11:55:40 »
So the problem does indeed seem to be that the Windows username contains non ISO-8859-1/LATIN-9/"ASCII" characters (which seems to be legitimate in terms of Windows, which seems to be able to handle this) and thus in the path to the users' Documents and Settings directory (which, on XP, defaults to %AppData%\megaglest and thus to, e.g. C:\Documents and Settings\USERNAME\Application Data\megaglest), but MegaGlest is unable to handle such characters and still relies on this location to be accessible by default.
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 · · ·

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: problems with mod extraction in windows?
« Reply #6 on: 17 May 2011, 00:48:52 »
What change would MegaGlest have to do to have full character support? I'd assume UTF-8? Would also be very good for translations, which are hindered by the fact that non ASCII characters cannot be used.
Edit the MegaGlest wiki: http://docs.megaglest.org/

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

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: problems with mod extraction in windows?
« Reply #7 on: 17 May 2011, 05:11:54 »
This this appears to be a bug on windows platform only and is related to the windows API that retrives the users appdata folder (as we all know glest / megaglest do not yet support widestrings nor utf). I have enabled the Japanese character set and am testing to see if there is a simple way to support file paths with special language characters (this does not mean full text support for these special characters). All of this works in Linux with the current 3.5.x mg code (I tested with Japanese characters in the mod foldername and everything was perfect (however it did not work in XP).

*UPDATE: Ok i have a windows binary located on my webasite for people with non ascii file paths (like Japan). Please give this a try and let me know if it works?

www.soft-haus.com/glest/temp/megaglest3.5.1_i386_win32_bin.7z

I enabled unicode and added some handling of wide characters and tested on my Windows XP machine by enabling Japan locale and character set. I also create a Japanese user and ran successfull as this being my mod path:

Code: [Select]
C:\Documents and Settings\人間五\Application Data\megaglest
Thanks

« Last Edit: 18 May 2011, 23:01:54 by softcoder »

 

anything