The International Simutrans Forum

Simutrans Extended => Simutrans-Extended gameplay discussion => Topic started by: nuhgl on October 21, 2017, 10:21:04 AM

Title: passenger-and-mail-classes pak128.britain makeobject script error
Post by: nuhgl on October 21, 2017, 10:21:04 AM
Hello there!

I have compiled Makeobj-Extended.exe from latest passenger-and-mail-classes branch of simutrans-ex using VS2015.
Then followed instruction on Spenk009s instruction for using MO script for latest passenger-and-mail-classes branch of pak128.britain.

Then script runs for very short couple of second then exit itself....
What is problem?

(I have no knowledge of programming...)

(https://i.imgur.com/UCQxalB.png)
Title: Re: passenger-and-mail-classes pak128.britain makeobject script error
Post by: Ves on October 21, 2017, 10:57:09 AM
Did you also compile the makeobj from the passenger-and-mail-classes branch?
Title: Re: passenger-and-mail-classes pak128.britain makeobject script error
Post by: nuhgl on October 21, 2017, 11:08:52 AM
Yes I have done
Title: Re: passenger-and-mail-classes pak128.britain makeobject script error
Post by: Ves on October 21, 2017, 12:19:10 PM
Oh, stupid me, only now I see that you wrote that you compiled the makeobj in your op! Sorry..
I don't know what is wrong then.
Title: Re: passenger-and-mail-classes pak128.britain makeobject script error
Post by: Rollmaterial on October 21, 2017, 03:21:12 PM
You need to change the directories in parameter.mos. By default it contains the paths for building the nightlies.
Title: Re: passenger-and-mail-classes pak128.britain makeobject script error
Post by: nuhgl on October 21, 2017, 03:38:42 PM
How do I do that?  :o

I attached .mos file.
Title: Re: passenger-and-mail-classes pak128.britain makeobject script error
Post by: Rollmaterial on October 21, 2017, 04:02:42 PM
Right-click it and open it with Notepad or WordPad, then replace the URL (github or bridgewater-brunel, I don't remember) with the path on your computer where you want to build the pak.
Title: Re: passenger-and-mail-classes pak128.britain makeobject script error
Post by: nuhgl on October 21, 2017, 05:04:20 PM
Sorry Rollmaterial,

What do I need to replace? And with which URL? I am confused.
Could you explain if bit more easier please?

Title: Re: passenger-and-mail-classes pak128.britain makeobject script error
Post by: Ves on October 21, 2017, 05:25:19 PM
In the top line in your explorer window when you have a opened a folder on your computer you have the line which says something like C:\my documents ...... etc or something similar which is the filepath to the current folder you currently have open.
In the file parameter.mos, you need the file-path to where the makeobj is located.
So, open the folder with the makeobj, copy the file-path, and paste it into the correct location in the parameter.mos (I don't remember what it is called).  I think you need the name of the makeobj as well, but compare with what is currently in the parameter.mos. 
Title: Re: passenger-and-mail-classes pak128.britain makeobject script error
Post by: nuhgl on October 21, 2017, 05:26:03 PM
Ah!

I figured, that I was confused between parameter.mos and makeALL.mos.
Now I have found parameter.mos and will have a look at that file.  ;)
Title: Re: passenger-and-mail-classes pak128.britain makeobject script error
Post by: nuhgl on October 21, 2017, 06:05:22 PM
Changes I made,
I copied and paste Makeobj-Extended.exe I compiled in this pak folder, and

for makeALL.mos,
I have changed

makeobj=%makeobj%
makeobj=Makeobj-Extended.exe

for parameter.mos,
changed

makeobj=C:\Users\James\Documents\Development\Simutrans\simutrans-extended-sources\simutrans\makeobj-extended.exe
makeobj=D:\Proj\simutrans\makeobj-extended.exe
OUTPUT=../../simutrans-extended-sources/simutrans/Pak128.Britain-Ex/
OUTPUT=D:\Proj\simutrans\pak\

It now recognise makeobj-extended.exe and I think executes correct, but ran into another error.

(https://i.imgur.com/qXkGpgu.png)


I noticed in makeALL.mos file all defined directories are with / forward slash, but on my windows explorer directory is expressed with backslash \.
Which it worked by modifying directories on parameter.mos file.

Should I change all forward slash to backslash on makeALL.mos file?
Or that might be not a problem, or if it seems is there easy way to change all slashes?

Or is it something to do with libpng?
Title: Re: passenger-and-mail-classes pak128.britain makeobject script error
Post by: Ves on October 21, 2017, 06:46:14 PM
I dont think you should touch the makeALL.mos at all, only the parameter.mos. Try get some clean .mos-files and modify only the file path.

My parameter.mos looks like this:

#!/bin/bash

# Einstellungsdateifuer die PAK-Erstellung per MOScript
# Bitte anpassen und als parameter.mos umaendern

#der Ort wo sich makeobj befindet absolut
#Absolute filepath to where makeobj is located
!makeobj=makeobj-extended.exe

#der Ort wo die Dateien hinkopiert werden sollen absolut MIT / am Ende
#You need to specify the location of the folder you want to build the pak in here
!OUTPUT=Pak128.Britain-Ex/

I think that with this setup it will only look in *this* folder for the makeobj, and it will create the pakset in *this folder*/Pak128.Britain-Ex/, so it should be failproof as long as the makeobj is located in the same folder as the .mos-files.

However, I think I recognize that error, and that it indeed is because of the lib-somethings. I remember there being some threads about it a while ago.
Title: Re: passenger-and-mail-classes pak128.britain makeobject script error
Post by: nuhgl on October 21, 2017, 07:43:56 PM
It seems as it is libpng version somthing....
Do you have working Makeobj-Extended from latest passenger-and-mail-classes branch to compile latest pak for it?

Do you mind to share here or somehow please?
I tried to compile libpng myself... but lack of VS2015 knowledge I am getting nowhere..  :o
Title: Re: passenger-and-mail-classes pak128.britain makeobject script error
Post by: Ves on October 21, 2017, 08:02:26 PM
Message sent!
Title: Re: passenger-and-mail-classes pak128.britain makeobject script error
Post by: nuhgl on October 22, 2017, 09:01:12 AM
Now I help of Ves I got to stage that it is writing PAKs but simutrans executable doesnt recognise wrote pak...

(https://i.imgur.com/kpFN1LR.png)

There is some issue with writing Building ground.Outside.pak  :-[
Title: Re: passenger-and-mail-classes pak128.britain makeobject script error
Post by: jamespetts on October 22, 2017, 10:38:53 AM
As a workaround, you can use the ground.Outside.pak from the downloaded compiled build, as this will not have changed significantly with the passenger-and-mail-classes branch.