Compiled Waroze but game crashes!

For code related discussions and questions
i-NoD
Code contributor
Code contributor
Posts: 318
Joined: 30 Nov 2008, 00:42
Location: In the middle of nowhere

Re: Compiled Waroze but game crashes!

Post by i-NoD »

Reg312 wrote:
vexed wrote: Are you running it within MSVC, or standalone ?
tried run by both ways with same result.
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
Regular
Regular
Posts: 681
Joined: 25 Mar 2011, 18:36

Re: Compiled Waroze but game crashes!

Post by Reg312 »

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>'
User avatar
vexed
Inactive
Inactive
Posts: 2538
Joined: 27 Jul 2010, 02:07

Re: Compiled Waroze but game crashes!

Post by vexed »

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)
/facepalm ...Grinch stole Warzone🙈🙉🙊 contra principia negantem non est disputandum
Super busy, don't expect a timely reply back.
i-NoD
Code contributor
Code contributor
Posts: 318
Joined: 30 Nov 2008, 00:42
Location: In the middle of nowhere

Re: Compiled Waroze but game crashes!

Post by i-NoD »

Reg312 wrote:i found stderr.txt in directory where i start WZ
Could you please give us full cmd line with parameters? Maybe you've missed data directory?
Reg312
Regular
Regular
Posts: 681
Joined: 25 Mar 2011, 18:36

Re: Compiled Waroze but game crashes!

Post by Reg312 »

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>'
User avatar
Berg
Regular
Regular
Posts: 2204
Joined: 02 Sep 2007, 23:25
Location: Australia

Re: Compiled Waroze but game crashes!

Post by Berg »

Reg312 wrote:info |01:22:02: [resLoadFile] The load function for resource type "IMGPAGE" failed for file "frontend0.png"
Means it cant find the image ... is the image there
cybersphinx
Inactive
Inactive
Posts: 1695
Joined: 01 Sep 2006, 19:17

Re: Compiled Waroze but game crashes!

Post by cybersphinx »

Reg312 wrote:5) started WZ from data dir without parameters
Run it from src.
We want information... information... information.
Reg312
Regular
Regular
Posts: 681
Joined: 25 Mar 2011, 18:36

Re: Compiled Waroze but game crashes!

Post by Reg312 »

Berg wrote:
Reg312 wrote:info |01:22:02: [resLoadFile] The load function for resource type "IMGPAGE" failed for file "frontend0.png"
Means it cant find the image ... is the image there
i've tried following:
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"
cybersphinx wrote:
Reg312 wrote:5) started WZ from data dir without parameters
Run it from src.
i not see any exe in src and subfolders

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)
i-NoD
Code contributor
Code contributor
Posts: 318
Joined: 30 Nov 2008, 00:42
Location: In the middle of nowhere

Re: Compiled Waroze but game crashes!

Post by i-NoD »

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"
Doesnt matter where you'll run it from as long as all dlls are in same folder and you'll correctly specify datadir path.
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.
Reg312
Regular
Regular
Posts: 681
Joined: 25 Mar 2011, 18:36

Re: Compiled Waroze but game crashes!

Post by Reg312 »

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
Reg312
Regular
Regular
Posts: 681
Joined: 25 Mar 2011, 18:36

Re: Compiled Waroze but game crashes!

Post by Reg312 »

is anyone know where is can get latest devpkg?
Reg312
Regular
Regular
Posts: 681
Joined: 25 Mar 2011, 18:36

Re: Compiled Waroze but game crashes!

Post by Reg312 »

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 :roll:


IT WORKS. thanks to all :)

now i can fix fk bug with incendiary damage #3078 and see result
Attachments
debug_inc1.png
Last edited by Reg312 on 25 Jan 2012, 02:10, edited 1 time in total.
Reg312
Regular
Regular
Posts: 681
Joined: 25 Mar 2011, 18:36

Re: Compiled Waroze but game crashes!

Post by Reg312 »

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
User avatar
Berg
Regular
Regular
Posts: 2204
Joined: 02 Sep 2007, 23:25
Location: Australia

Re: Compiled Waroze but game crashes!

Post by Berg »

Reg312 wrote:First, i still don't understand where people should get latest devpkg.
when you use the cross compile method on ubuntu the build script downloads the packages
Just a little info
i-NoD
Code contributor
Code contributor
Posts: 318
Joined: 30 Nov 2008, 00:42
Location: In the middle of nowhere

Re: Compiled Waroze but game crashes!

Post by i-NoD »

Reg312 wrote:First, i still don't understand where people should get latest devpkg.
Ты уже, наверное, догадался, что вот так сами и собирают все :) Каждый компонент надо допилисть для студии ещё, что ваще атас..
Berg wrote:when you use the cross compile method on ubuntu the build script downloads the packages
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-host :lecture:
Post Reply