The International Simutrans Forum

 

Author Topic: problem with latest makeobj (makeobj 49)  (Read 24185 times)

0 Members and 1 Guest are viewing this topic.

Offline DirrrtyDirk

  • Devotees (Inactive)
  • *
  • Posts: 1253
  • JR 700 Series Shinkansen
  • Languages: EN,DE
Re: problem with latest makeobj (makeobj 49)
« Reply #35 on: August 29, 2008, 06:21:15 PM »
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.

Offline gauthier

  • Moderator
  • *
  • Posts: 3626
    • SNFOS'website (in both FR and EN)
  • Languages: FR, EN, JP
Re: problem with latest makeobj (makeobj 49)
« Reply #36 on: August 29, 2008, 06:29:06 PM »
oops sorry I have forgoten it  ::)

Offline gauthier

  • Moderator
  • *
  • Posts: 3626
    • SNFOS'website (in both FR and EN)
  • Languages: FR, EN, JP
Re: problem with latest makeobj (makeobj 49)
« Reply #37 on: August 30, 2008, 08:11:27 PM »
I have an other problem  ;D

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

(off-topic : where I can download Tile-cutter ?)
« Last Edit: August 30, 2008, 08:25:32 PM by gauthier »

Offline DirrrtyDirk

  • Devotees (Inactive)
  • *
  • Posts: 1253
  • JR 700 Series Shinkansen
  • Languages: EN,DE
Re: problem with latest makeobj (makeobj 49)
« Reply #38 on: August 30, 2008, 08:57:18 PM »
Do you have a .dat file?

and tilecutter should be linked here

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 9353
  • Languages: De,EN,JP
Re: problem with latest makeobj (makeobj 49)
« Reply #39 on: August 30, 2008, 09:47:48 PM »
Then spell it max_length ...

Offline DirrrtyDirk

  • Devotees (Inactive)
  • *
  • Posts: 1253
  • JR 700 Series Shinkansen
  • Languages: EN,DE
Re: problem with latest makeobj (makeobj 49)
« Reply #40 on: August 30, 2008, 09:58:44 PM »
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" ?
« Last Edit: August 30, 2008, 10:03:40 PM by DirrrtyDirk »

Offline VS

  • Senior Plumber (Devotee)
  • Moderator
  • *
  • Posts: 4855
  • Vladimír Slávik
    • VS's Simutrans site
  • Languages: CS,EN
Re: problem with latest makeobj (makeobj 49)
« Reply #41 on: August 31, 2008, 08:09:15 AM »
th, ht…

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

Offline gauthier

  • Moderator
  • *
  • Posts: 3626
    • SNFOS'website (in both FR and EN)
  • Languages: FR, EN, JP
Re: problem with latest makeobj (makeobj 49)
« Reply #42 on: August 31, 2008, 12:33:59 PM »
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 !

Offline Frank

  • Inactive/Retired
  • *
  • Posts: 1431
  • Languages: DE
Re: problem with latest makeobj (makeobj 49)
« Reply #43 on: August 31, 2008, 12:42:15 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

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 9353
  • Languages: De,EN,JP
Re: problem with latest makeobj (makeobj 49)
« Reply #44 on: August 31, 2008, 06:40:31 PM »
Is supported in the next again, since this was reported earlier.

Offline gauthier

  • Moderator
  • *
  • Posts: 3626
    • SNFOS'website (in both FR and EN)
  • Languages: FR, EN, JP
Re: problem with latest makeobj (makeobj 49)
« Reply #45 on: September 23, 2008, 07:44:40 PM »
constraint don't work  :-[

Offline wernieman

  • Devotees (Inactive)
  • *
  • Posts: 713
    • Werniemans-Webside (only German)
Re: problem with latest makeobj (makeobj 49)
« Reply #46 on: September 23, 2008, 07:46:42 PM »
Was is your Errormessage?

Offline DirrrtyDirk

  • Devotees (Inactive)
  • *
  • Posts: 1253
  • JR 700 Series Shinkansen
  • Languages: EN,DE
Re: problem with latest makeobj (makeobj 49)
« Reply #47 on: September 23, 2008, 07:55:41 PM »
"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:
Code: [Select]
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:
Code: [Select]
Constraint[Prev][0]=SNFOS_Aero_car
Constraint[Prev][1]=SNFOS_Aero_mails
Constraint[Next][0]=SNFOS_Aero_front
Constraint[Next][1]=None
« Last Edit: September 23, 2008, 08:03:22 PM by DirrrtyDirk »

Offline Frank

  • Inactive/Retired
  • *
  • Posts: 1431
  • Languages: DE
Re: problem with latest makeobj (makeobj 49)
« Reply #48 on: September 23, 2008, 09:20:49 PM »
none not None

Offline DirrrtyDirk

  • Devotees (Inactive)
  • *
  • Posts: 1253
  • JR 700 Series Shinkansen
  • Languages: EN,DE
Re: problem with latest makeobj (makeobj 49)
« Reply #49 on: September 23, 2008, 09:54:34 PM »
I don't remember that being case-sensitive... ???

Offline gauthier

  • Moderator
  • *
  • Posts: 3626
    • SNFOS'website (in both FR and EN)
  • Languages: FR, EN, JP
Re: problem with latest makeobj (makeobj 49)
« Reply #50 on: September 24, 2008, 11:44:37 AM »
I put "none" in last position and replaced "SNFOS_none" by "none" but it doesn't work again. It is strange.

Offline DirrrtyDirk

  • Devotees (Inactive)
  • *
  • Posts: 1253
  • JR 700 Series Shinkansen
  • Languages: EN,DE
Re: problem with latest makeobj (makeobj 49)
« Reply #51 on: September 24, 2008, 11:51:44 AM »
Can you show me the new dat?

Offline gauthier

  • Moderator
  • *
  • Posts: 3626
    • SNFOS'website (in both FR and EN)
  • Languages: FR, EN, JP
Re: problem with latest makeobj (makeobj 49)
« Reply #52 on: September 24, 2008, 06:32:46 PM »
of course

Offline wernieman

  • Devotees (Inactive)
  • *
  • Posts: 713
    • Werniemans-Webside (only German)
Re: problem with latest makeobj (makeobj 49)
« Reply #53 on: September 24, 2008, 06:47:42 PM »
And can you show us the pngs?

Offline DirrrtyDirk

  • Devotees (Inactive)
  • *
  • Posts: 1253
  • JR 700 Series Shinkansen
  • Languages: EN,DE
Re: problem with latest makeobj (makeobj 49)
« Reply #54 on: September 24, 2008, 06:54:35 PM »
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"

Offline gauthier

  • Moderator
  • *
  • Posts: 3626
    • SNFOS'website (in both FR and EN)
  • Languages: FR, EN, JP
Re: problem with latest makeobj (makeobj 49)
« Reply #55 on: September 24, 2008, 07:07:43 PM »
sorry it's the evening, I'm a bit tired -_-'

Thanks a lot, it works !
« Last Edit: September 24, 2008, 07:44:59 PM by gauthier »

Offline Christiansen

  • Lounger
  • *
  • Posts: 66
    • Simutrans Hungary
Re: problem with latest makeobj (makeobj 49)
« Reply #56 on: December 21, 2008, 12:47:22 AM »
else starts me only a window jumps up and nothing

Offline DirrrtyDirk

  • Devotees (Inactive)
  • *
  • Posts: 1253
  • JR 700 Series Shinkansen
  • Languages: EN,DE
Re: problem with latest makeobj (makeobj 49)
« Reply #57 on: December 21, 2008, 01:29:32 AM »
makeobj is a command line tool and has no GUI - so double clicking doesn't work.

Offline gauthier

  • Moderator
  • *
  • Posts: 3626
    • SNFOS'website (in both FR and EN)
  • Languages: FR, EN, JP
Re: problem with latest makeobj (makeobj 49)
« Reply #58 on: December 26, 2008, 07:09:33 PM »
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
Quote
makeobj 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
Quote
makeobj MERGE name.pak *.pak

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

Offline z9999

  • Devotees (Inactive)
  • *
  • Posts: 848
Re: problem with latest makeobj (makeobj 49)
« Reply #59 on: December 27, 2008, 02:23:51 AM »
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.