News:

Congratulations!
 You've won the News Item Lottery! Your prize? Reading this news item! :)

problem with latest makeobj (makeobj 49)

Started by gauthier, August 11, 2008, 11:03:22 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

DirrrtyDirk

That's what I told you here already.

You'll need a more recent nightly. The r1973 Frank posted at the bottom of that thread should work.

gauthier


gauthier

#37
I have an other problem  ;D

The parameter "max_lenght" of my bridges don't work  ???

(off-topic : where I can download Tile-cutter ?)

DirrrtyDirk

Do you have a .dat file?

and tilecutter should be linked here

prissi


DirrrtyDirk

#40
Errr... no. "length" is correct English - however, in the .dat files it has been "lenght" for a long time (even the sources of pak64 and the wiki show it that way).

EDIT:
But maybe you did it the other way round and used "max_length" instead of max_lenght" ?

VS

th, ht...

Lenght, Width. Well known to all programmers. It's present even in Borland's VCL (maybe no more). Nobody cares for spelling :-\

gauthier

I already checked it. I wrote "max_lenght".

for example I post AMT dat file.

BUT I just used the function "Spell Check" and it's not "max_lenght" but "max_length". "max_lenght" is written on the German wiki !

Frank

Quote from: gauthier on August 31, 2008, 12:33:59 PM
...
"max_lenght" is written on the German wiki !

max_lenght is the current name from parameter

in the current makeobj was probably changed to max_length

max_lenght is apparently no longer supported

or is a bug in makeobj/simutrans

prissi

Is supported in the next again, since this was reported earlier.

gauthier

constraint don't work  :-[

wernieman


DirrrtyDirk

#47
"None" must be the last entry, not the first!

EDIT:
"SNFOS_None" appears to be a typo for "none", while "SNFOS_Aero_avant" and "SNFOS_Aero_bar" are not defined at all in this file.  ;)

So try these for front:
Constraint[Prev][0]=SNFOS_Aero_rear
Constraint[Prev][1]=None
Constraint[Next][0]=SNFOS_Aero_car
Constraint[Next][1]=SNFOS_Aero_mails


and these for rear:
Constraint[Prev][0]=SNFOS_Aero_car
Constraint[Prev][1]=SNFOS_Aero_mails
Constraint[Next][0]=SNFOS_Aero_front
Constraint[Next][1]=None


Frank


DirrrtyDirk

I don't remember that being case-sensitive... ???

gauthier

I put "none" in last position and replaced "SNFOS_none" by "none" but it doesn't work again. It is strange.

DirrrtyDirk


gauthier


wernieman


DirrrtyDirk

2 quick things:

1.) you use "SNFOS_Aero_bar" in your constraints several times - but this vehicle is not defined in the dat.

2.) in the "rear" vehicle you have "SNFOS_Aero_avant" in the constraints - the vehicle is called "SNFOS_Aero_front"

gauthier

#55
sorry it's the evening, I'm a bit tired -_-'

Thanks a lot, it works !

Christiansen

else starts me only a window jumps up and nothing

DirrrtyDirk

makeobj is a command line tool and has no GUI - so double clicking doesn't work.

gauthier

Currently I use two command files.

create.bat : create pak files from all dat files in the folder
merge.bat : merge all pak files in one pak file.

note : change the name of the pak file in merge.bat by opening it with a simple text editor ("bloc note" in the French version of windows).

create.bat : copy this in the text editor and save it with .bat extension
Quotemakeobj pak128 2>err.txt
=> errors will be written in err.txt

merge.bat copy this in the text editor, change the name of your final pak file as you want, save it with .bat extension
Quotemakeobj MERGE name.pak *.pak

these files MUST be in the same folder of makeobj.exe

z9999

I'm using this.

Quote
makeobj pak128 > err.txt 2>&1
err.txt

In stderr, you can see olny png file related error.
Problems like syntax error are logged in stdout.

So, I always check both of them.