Page 2 of 4

Posted: 01 Jul 2004 11:34
by TrueBrain
Do you have mainicon.ico in your root dir? And you should _not_ add it to your project, but ttd.rc should.. and yes, make a makefile, I will compare it with mine!

Posted: 01 Jul 2004 11:37
by Wolf01
TrueLight wrote:Do you have mainicon.ico in your root dir? And you should _not_ add it to your project, but ttd.rc should.. and yes, make a makefile, I will compare it with mine!
the root directory means the directory where are all source files? if it is, yes, i put there mainico.ico

in the "other files" diectory, what i have to put?

Posted: 01 Jul 2004 18:52
by SHADOW-XIII
well ... it didn't find mainicon.ico file ... so I did add OTT project path to the project (resources tab) and it worked .. but how the hell run the EXE (I still got LANG error) :evil:

Posted: 01 Jul 2004 21:20
by Darkvater
Darkvater wrote:
SHADOW-XIII wrote:yes yes ... I meant that there are /LANG and /DATA directories ... it is the same directory where I installed OTTD
So I ask you again. Have you put all .txt files in the LANG/ directory? Have you compiled each of them using strgen, such that next to all .txt files, there are also .lng files in the LANG/ directory?

If the openttd executeable is in root, where LANG/ is a subdirectory of, it should work. If openttd executeable is in the debug folder for example, you might need to set the working directory in mingw to the root directory.
to Shadow-XIII

Posted: 01 Jul 2004 21:28
by SHADOW-XIII
thx :oops: I did it

Posted: 01 Jul 2004 22:16
by Darkvater
SHADOW-XIII wrote:thx :oops: I did it
Meaning? You had your files in the wrong place, or openttd magically started working? It's nice to hear how people solved their problems.

Posted: 01 Jul 2004 23:43
by dominik81
SHADOW-XIII wrote:thx :oops: I did it
You should consider writing a How-To, to make it easier for other people to get the same problems solved that you encountered.

Posted: 02 Jul 2004 07:05
by SHADOW-XIII
I will do that in the aftertnoon (g2g no)

and I fixed that by running strgen in OTTD source directory and copying english.lng from SOURCE_OTTD_DIR/LANG directory to the the COMPILED_OTTD_DIR/LANG subdirectory

Posted: 02 Jul 2004 12:38
by Wolf01
ok, thanks Shadow-XIII

now i got a new error, it seems to be a syntax error or something else, maybe the file is an old release...

Code: Select all

Compiling source file(s)...
StdAfx.c
ai.c
aircraft_cmd.c
..\ottd-svn_files\main\aircraft_cmd.c: In function `CmdBuildAircraft':
..\ottd-svn_files\main\aircraft_cmd.c:248: error: `STR_SV_AIRCRAFT_NAME' undeclared (first use in this function)
..\ottd-svn_files\main\aircraft_cmd.c:248: error: (Each undeclared identifier is reported only once
..\ottd-svn_files\main\aircraft_cmd.c:248: error: for each function it appears in.)

ottd-svn.exe - 3 error(s), 4 warning(s)

Posted: 02 Jul 2004 12:57
by Darkvater

Code: Select all

aircraft_cmd.c
..\ottd-svn_files\main\aircraft_cmd.c: In function `CmdBuildAircraft':
..\ottd-svn_files\main\aircraft_cmd.c:248: error: `STR_SV_AIRCRAFT_NAME' undeclared (first use in this function)
I'll bet you my 2 cents that you haven't run strgen yet :). Strgen.exe creates strings.h where all these things are defined.

Posted: 02 Jul 2004 16:52
by Wolf01
Darkvater wrote:

Code: Select all

aircraft_cmd.c
..\ottd-svn_files\main\aircraft_cmd.c: In function `CmdBuildAircraft':
..\ottd-svn_files\main\aircraft_cmd.c:248: error: `STR_SV_AIRCRAFT_NAME' undeclared (first use in this function)
I'll bet you my 2 cents that you haven't run strgen yet :). Strgen.exe creates strings.h where all these things are defined.
now i'll get the latest strgen from nightly build's site

edit: it is sufficient only execute it?

edit^2: yes, it was
now?

Code: Select all

In file included from ..\ottd-svn_files\main\engine.c:4:
..\ottd-svn_files\main\table\engines.h:1: error: redefinition of `struct EngineInfo'
..\ottd-svn_files\main\table\engines.h:7: error: redefinition of `EngineInfo'
..\ottd-svn_files\main\engine.h:35: error: `EngineInfo' previously declared here
..\ottd-svn_files\main\table\engines.h:12: error: conflicting types for `_engine_info'
..\ottd-svn_files\main\engine.h:132: error: previous declaration of `_engine_info'
..\ottd-svn_files\main\table\engines.h:271: error: conflicting types for `_rail_vehicle_info'
..\ottd-svn_files\main\engine.h:133: error: previous declaration of `_rail_vehicle_info'

ottd-svn.exe - 7 error(s), 0 warning(s)
edit^3: oh, maybe this is an older version?
it is possible that i'm all an error?

Posted: 02 Jul 2004 17:09
by Wolf01
it works it works!!

err.... doh!
where i can get libz.dll, and when found it, where i have to put it?
if i compile the game with "WITH_ZLIB" the game doesn't start, instead w/o "WITH_ZLIB" the game works...

another question, how i can make my own title screen?

Posted: 02 Jul 2004 17:14
by Darkvater
Wolf01 wrote:it works it works!!

err.... doh!
where i can get zlib.dll, and when found it, where i have to put it?
Finally :D. You usually have to put it in the main development directory. Don't worry, if it's in the wrong place, the compiler will complain, so you will find out soon enough.

Posted: 02 Jul 2004 17:16
by Wolf01
Darkvater wrote:
Wolf01 wrote:it works it works!!

err.... doh!
where i can get zlib.dll, and when found it, where i have to put it?
Finally :D. You usually have to put it in the main development directory. Don't worry, if it's in the wrong place, the compiler will complain, so you will find out soon enough.
ok, but where i can get the file?

Posted: 02 Jul 2004 17:21
by Darkvater
Wolf01 wrote:ok, but where i can get the file?
*Magic* http://www.tt-forums.net/viewtopic.php?t=6616 :lol:

Posted: 02 Jul 2004 17:31
by Wolf01
"i thought that was the end... but it was only the beginning"

after put these files in the main directory i got an error:

Code: Select all

E:\ottd-svn\Debug\saveload.o(.text+0x1823): In function `InitReadZlib':
E:\ottd-svn\..\ottd-svn_files\main\saveload.c:822: undefined reference to `inflateInit_@12'
E:\ottd-svn\Debug\saveload.o(.text+0x18dc): In function `ReadZlib':
E:\ottd-svn\..\ottd-svn_files\main\saveload.c:843: undefined reference to `inflate@8'
E:\ottd-svn\Debug\saveload.o(.text+0x1924): In function `UninitReadZlib':
E:\ottd-svn\..\ottd-svn_files\main\saveload.c:856: undefined reference to `inflateEnd@4'
E:\ottd-svn\Debug\saveload.o(.text+0x197c): In function `InitWriteZlib':
E:\ottd-svn\..\ottd-svn_files\main\saveload.c:863: undefined reference to `deflateInit_@16'
E:\ottd-svn\Debug\saveload.o(.text+0x1a1f): In function `WriteZlibLoop':
E:\ottd-svn\..\ottd-svn_files\main\saveload.c:880: undefined reference to `deflate@8'
E:\ottd-svn\Debug\saveload.o(.text+0x1b24): In function `UninitWriteZlib':
E:\ottd-svn\..\ottd-svn_files\main\saveload.c:900: undefined reference to `deflateEnd@4'

ottd-svn.exe - 6 error(s), 4 warning(s)

Posted: 02 Jul 2004 19:01
by Darkvater
Wolf01 wrote:"i thought that was the end... but it was only the beginning"
Which file was it? Have you read the whole post? Have you put the files from useful.zip or from the attachment?

Posted: 02 Jul 2004 19:59
by SHADOW-XIII
I search my PC for zlib.dll ... copied it into OTTD dir and renamed to libz.dll .. this way it worked

Posted: 03 Jul 2004 07:20
by Wolf01
Darkvater wrote:
Wolf01 wrote:"i thought that was the end... but it was only the beginning"
Which file was it? Have you read the whole post? Have you put the files from useful.zip or from the attachment?
yes, i done all

Posted: 03 Jul 2004 07:35
by Darkvater
Wolf01 wrote:
Darkvater wrote:
Wolf01 wrote:"i thought that was the end... but it was only the beginning"
Which file was it? Have you read the whole post? Have you put the files from useful.zip or from the attachment?
yes, i done all
Which one? One of them has to work. You can try removing 'WITH_ZLIB' if you don't want zlib support.