Then, considering what vexed have said, you should check logs for insights, somewhere inside warzone folder in 'My Documents'. Post then here for quicker results.Reg312 wrote:tried run by both ways with same result.vexed wrote: Are you running it within MSVC, or standalone ?
Compiled Waroze but game crashes!
Re: Compiled Waroze but game crashes!
Re: Compiled Waroze but game crashes!
i found stderr.txt in directory where i start WZ
Code: Select all
Could not open C:\Users\Владимир\Documents\Warzone 2100 master\logs\WZlog-0110_143108.txt for appending!
error |02:31:08: [debug_register_callback] Failed to initialise debug callback
QSslSocket: cannot call unresolved function d2i_X509
QSslSocket: cannot call unresolved function d2i_X509
error |02:31:08: [Lobby::Client::addCACertificate] Failed to load the CA certificate wz::cacert.org-root.pem!
QSslSocket: cannot call unresolved function d2i_X509
error |02:31:08: [Lobby::Client::addCACertificate] Failed to load the CA certificate wz::cacert.org-class3.pem!
libpng warning: Application built with libpng-1.2.40 but running with 1.5.7
libpng warning: Application built with libpng-1.2.40 but running with 1.5.7
error |02:31:09: [dataImageLoad] IMGPAGE load failed
info |02:31:09: [resLoadFile] The load function for resource type "IMGPAGE" failed for file "frontend0.png"
info |02:31:09: [resLoadFile] Assert in Warzone: frameresource.cpp:490 (false), last script event: '<none>'
Re: Compiled Waroze but game crashes!
Pull down the latest source again, you are using older code, and all that was removed.
(BTW, the SSL errors are because you didn't compile Qt with openSSL)
(BTW, the SSL errors are because you didn't compile Qt with openSSL)
/facepalm ...Grinch stole Warzone contra principia negantem non est disputandum
Super busy, don't expect a timely reply back.
Super busy, don't expect a timely reply back.
Re: Compiled Waroze but game crashes!
Could you please give us full cmd line with parameters? Maybe you've missed data directory?Reg312 wrote:i found stderr.txt in directory where i start WZ
Re: Compiled Waroze but game crashes!
so i returned to building WZ
what i've done:
1) rebuilt QT with openSSL
2) got last git
3) added folder devpkg containing previously built libs
4) rebuilt WZ in VS2010 (configuration "release")
5) tried run WZ from without parameters from data directory
- failed, WZ required bunch of DLL's
- found DLL's which i prepared weeks ago
5) started WZ from data dir without parameters
got following stderr.txt
libpng warning: Application built with libpng-1.2.40 but running with 1.5.7
error |01:22:02: [iV_initializeGLC] Failed to select font family DejaVu Sans as regular font
error |01:22:02: [iV_initializeGLC] iV_initializeGLC: Failed to select font family DejaVu Sans for the bold font
libpng warning: Application built with libpng-1.2.40 but running with 1.5.7
error |01:22:02: [dataImageLoad] IMGPAGE load failed
info |01:22:02: [resLoadFile] The load function for resource type "IMGPAGE" failed for file "frontend0.png"
info |01:22:02: [resLoadFile] Assert in Warzone: frameresource.cpp:490 (false), last script event: '<none>'
what i've done:
1) rebuilt QT with openSSL
2) got last git
3) added folder devpkg containing previously built libs
4) rebuilt WZ in VS2010 (configuration "release")
5) tried run WZ from without parameters from data directory
- failed, WZ required bunch of DLL's
- found DLL's which i prepared weeks ago
5) started WZ from data dir without parameters
got following stderr.txt
libpng warning: Application built with libpng-1.2.40 but running with 1.5.7
error |01:22:02: [iV_initializeGLC] Failed to select font family DejaVu Sans as regular font
error |01:22:02: [iV_initializeGLC] iV_initializeGLC: Failed to select font family DejaVu Sans for the bold font
libpng warning: Application built with libpng-1.2.40 but running with 1.5.7
error |01:22:02: [dataImageLoad] IMGPAGE load failed
info |01:22:02: [resLoadFile] The load function for resource type "IMGPAGE" failed for file "frontend0.png"
info |01:22:02: [resLoadFile] Assert in Warzone: frameresource.cpp:490 (false), last script event: '<none>'
Re: Compiled Waroze but game crashes!
Means it cant find the image ... is the image thereReg312 wrote:info |01:22:02: [resLoadFile] The load function for resource type "IMGPAGE" failed for file "frontend0.png"
-
- Inactive
- Posts: 1695
- Joined: 01 Sep 2006, 19:17
Re: Compiled Waroze but game crashes!
Run it from src.Reg312 wrote:5) started WZ from data dir without parameters
We want information... information... information.
Re: Compiled Waroze but game crashes!
i've tried following:Berg wrote:Means it cant find the image ... is the image thereReg312 wrote:info |01:22:02: [resLoadFile] The load function for resource type "IMGPAGE" failed for file "frontend0.png"
1) put all contents (mp.wz, base.wz etc) of warzone master installation directory to running directory of wz
2) i found image "frontend0.png" in folder \base\Images
This folder was in same directory there i run warzone exe
3) add parameter "--datadir" - stderr.txt = "Unrecognized option: C:\Users\Vladimir\Documents\warzone2100\ddd"
C:\Users\Vladimir\Documents\warzone2100\data\Warzone2100.exe --datadir C:\Users\Vladimir\Documents\warzone2100\ddd
C:\Users\Vladimir\Documents\warzone2100\data\Warzone2100.exe --datadir "C:\Users\Vladimir\Documents\warzone2100\ddd"
i not see any exe in src and subfolderscybersphinx wrote:Run it from src.Reg312 wrote:5) started WZ from data dir without parameters
also tried run from VS with starting paramters and got error "Unrecognized option: ..\data"
update1: i put all dll's and data files in Release directory and run WZ from VS
i got same stderr.txt with
error |02:02:19: [dataImageLoad] IMGPAGE load failed
info |02:02:19: [resLoadFile] The load function for resource type "IMGPAGE" failed for file "frontend0.png
i think problem can be in png library (may be i should find dll with same version -1.2.40)
Re: Compiled Waroze but game crashes!
Doesnt matter where you'll run it from as long as all dlls are in same folder and you'll correctly specify datadir path.Reg312 wrote: 2) i found image "frontend0.png" in folder \base\Images
This folder was in same directory there i run warzone exe
3) add parameter "--datadir" - stderr.txt = "Unrecognized option: C:\Users\Vladimir\Documents\warzone2100\ddd"
C:\Users\Vladimir\Documents\warzone2100\data\Warzone2100.exe --datadir C:\Users\Vladimir\Documents\warzone2100\ddd
C:\Users\Vladimir\Documents\warzone2100\data\Warzone2100.exe --datadir "C:\Users\Vladimir\Documents\warzone2100\ddd"
Try C:\Users\Vladimir\Documents\warzone2100\data\Warzone2100.exe --datadir="C:\Users\Vladimir\Documents\warzone2100\data"
I recall smth about = instead of spaces, try it. And why ddd? Should be data subfolder with base, mp subfolders or zips inside.
Re: Compiled Waroze but game crashes!
thank you, parameter works with =
But i got same stderr.txt
started WZ with shrotcut C:\Users\Vladimir\Documents\warzone2100\data\Warzone2100.exe --datadir="C:\Users\Vladimir\Documents\warzone2100\data"
libpng warning: Application built with libpng-1.2.40 but running with 1.5.1
libpng warning: Application built with libpng-1.2.40 but running with 1.5.1
error |02:23:25: [dataImageLoad] IMGPAGE load failed
info |02:23:25: [resLoadFile] The load function for resource type "IMGPAGE" failed for file "frontend0.png"
info |02:23:25: [resLoadFile] Assert in Warzone: frameresource.cpp:490 (false), last script event: '<none>'
and yes, subfolders base and mp located in data folder and "frontend0.png" located in C:\Users\Vladimir\Documents\warzone2100\data\base\images
But i got same stderr.txt
started WZ with shrotcut C:\Users\Vladimir\Documents\warzone2100\data\Warzone2100.exe --datadir="C:\Users\Vladimir\Documents\warzone2100\data"
libpng warning: Application built with libpng-1.2.40 but running with 1.5.1
libpng warning: Application built with libpng-1.2.40 but running with 1.5.1
error |02:23:25: [dataImageLoad] IMGPAGE load failed
info |02:23:25: [resLoadFile] The load function for resource type "IMGPAGE" failed for file "frontend0.png"
info |02:23:25: [resLoadFile] Assert in Warzone: frameresource.cpp:490 (false), last script event: '<none>'
and yes, subfolders base and mp located in data folder and "frontend0.png" located in C:\Users\Vladimir\Documents\warzone2100\data\base\images
Re: Compiled Waroze but game crashes!
is anyone know where is can get latest devpkg?
Re: Compiled Waroze but game crashes!
i replaced include files, got png.h and some others from ;libpng version 1.5.7
wow! it running without errors! i see start menu, but did not tried start game yet
IT WORKS. thanks to all
now i can fix fk bug with incendiary damage #3078 and see result
wow! it running without errors! i see start menu, but did not tried start game yet
IT WORKS. thanks to all
now i can fix fk bug with incendiary damage #3078 and see result
Last edited by Reg312 on 25 Jan 2012, 02:10, edited 1 time in total.
Re: Compiled Waroze but game crashes!
i try start writing of some kind of compile guide here
First, i still don't understand where people should get latest devpkg.
Second, why people should build all libraries manually. if i've made my own devpkg, i assume it will work on any windows machine, is not it?
ok, step by step
1) Download and install Git
First, there is many git-clients for windows. You should use proper client.
I recommend msysgit http://code.google.com/p/msysgit/
- donwload, install
on installaton of msysgit you should select option "Run from windows command propmpt"
git installation contains "sh.exe" which used n WZ for autorevision and neccesary for build
2) Run cmd (windows command prompt)
select directory where you want place WZ codes
execute command in cmd:
git clone git://github.com/Warzone2100/warzone2100.git
WZ sources will be placed in selected directory in subfolder warzone2100
3) Download Developers Package and unzip in warzone source directory
later i'll make download link to prepared devpkg (not sure where is it should be gotten)
4) Download, Install QT
configure and compile QT with OpenSSL (you need also get OpenSSL library)
building QT is long process and i'll describe it later
5) Open warzone.sln in visual studio and build it
6) Copy dll's from devpkg to data directory
7) Run Warzone2100.exe from data directory
First, i still don't understand where people should get latest devpkg.
Second, why people should build all libraries manually. if i've made my own devpkg, i assume it will work on any windows machine, is not it?
ok, step by step
1) Download and install Git
First, there is many git-clients for windows. You should use proper client.
I recommend msysgit http://code.google.com/p/msysgit/
- donwload, install
on installaton of msysgit you should select option "Run from windows command propmpt"
git installation contains "sh.exe" which used n WZ for autorevision and neccesary for build
2) Run cmd (windows command prompt)
select directory where you want place WZ codes
execute command in cmd:
git clone git://github.com/Warzone2100/warzone2100.git
WZ sources will be placed in selected directory in subfolder warzone2100
3) Download Developers Package and unzip in warzone source directory
later i'll make download link to prepared devpkg (not sure where is it should be gotten)
4) Download, Install QT
configure and compile QT with OpenSSL (you need also get OpenSSL library)
building QT is long process and i'll describe it later
5) Open warzone.sln in visual studio and build it
6) Copy dll's from devpkg to data directory
7) Run Warzone2100.exe from data directory
Re: Compiled Waroze but game crashes!
when you use the cross compile method on ubuntu the build script downloads the packagesReg312 wrote:First, i still don't understand where people should get latest devpkg.
Just a little info
Re: Compiled Waroze but game crashes!
Ты уже, наверное, догадался, что вот так сами и собирают все Каждый компонент надо допилисть для студии ещё, что ваще атас..Reg312 wrote:First, i still don't understand where people should get latest devpkg.
Yup, me thinks that its easier to install ubuntu 10.10 or 11.04 into VirtualBox and follow some linux guide for guest system or cross-compile for your win-hostBerg wrote:when you use the cross compile method on ubuntu the build script downloads the packages