-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error run in linux OS,No X11 DISPLAY variable was set #42
Comments
I am guessing this is not a WarsmashModEngine specific issue, but rather an issue with the Java configuration on your specific platform. According to something from StackOverflow (https://stackoverflow.com/questions/5362512/unable-to-run-java-gui-programs-with-ubuntu):
When we use java for the WarsmashModEngine, it is necessary to install a version of java that does have the graphics libraries. Last time I used Ubuntu, the OpenJDK version 17 that is installed by the So, anyway, Warsmash in 2020-2021 worked better on linux because it was on Java 8. Maybe you could use |
Thinking back on it, the last time I played Warsmash on Linux was in January, and here was what I used:
[DataSources]
Count=7
Type00=MPQ
Path00="~/Games/Warcraft3/war3.mpq"
Type01=MPQ
Path01="~/Games/Warcraft3/War3x.mpq"
Type02=MPQ
Path02="~/Games/Warcraft3/War3xlocal.mpq"
Type03=MPQ
Path03="~/Games/Warcraft3/War3Patch.mpq"
Type04=Folder
Path04="../../resources"
Type05=Folder
Path05="~/Games/Warcraft3/Maps"
Type06=Folder
Path06="~/Games/Warcraft3/"
[GamingNetwork]
Server=warsmash.net
[Emulator]
// Player settings: use 28 for the "24 player" patches,
// and use 16 for the "12 player" patches, because
// this constant includes Neutrals
MaxPlayers=16
// Game version:
// 0: RoC (not well supported)
// 1: TFT (very supported)
// 2: some code comment says this could be used for mods, but don't for now
GameVersion=0
// Catch cursor -- eventually this should probably be decided based on windowed mode
CatchCursor=1
// My tileset loader is "always on top", even for local files. This is different
// from some MPQ loader engines that would use
// load index as a numeric value and could be changed. For now, I have this
// workaround to fix it if you need the local files
// to take priority over built-ins for tilesets.
FixFlatFilesTilesetLoading=0
EnableMusic=1
// This setting, if turned back on, might cause us to load
// ingame units based on the map editor data instead of loading
// based on the map script. It is not well tested, and is always
// left off lately.
LoadUnitsFromWorldEditData=0
// Does nothing for now
CrashOnIncompatible132Features=0
// Hotkey mode:
// 0: hotkey data from the map editor or game units
// 1: hotkey is forced to use QWER/ASDF/ZXCV grid
InputHotkeyMode=1
// If you need the model loader to accept RoC Beta assets, you can use this,
// however this only changes MDX parsing and not BLP0 parsing so the BLP0 parsing
// would most likely fail unless you're using flat files. So in practice, I was
// using RoC Beta MDX assets with TFT format converted textures while activating
// this setting, meaning that it probably won't work for you unless you know
// what you're doing.
ParseReignOfChaosBetaModelsInstead=0 The above INI file should probably work for Warcraft III patch 1.22 up through 1.28. If you are using Warcraft III patch 1.29 or afterward, once the Reforged team started to substantially move around game files, you will need to tweak the settings. Info on that can be found elsewhere, but as a general rule:
By following all of these steps, I was able to play Warsmash and build a Night Elf base on the CentOS 7 machine with no graphics card, and I was getting close to 60 FPS on the Intel Integrated Graphics with a smooth looking visual. |
what should i do?
i add
export DISPLAY=0.0
in /etc/profile but not workingi run java -jar desktop-1.0.jar
How can i fix this? thanks
The text was updated successfully, but these errors were encountered: