Author Topic: passenger-and-mail-classes pak128.britain makeobject script error  (Read 179 times)

0 Members and 1 Guest are viewing this topic.

Offline nuhgl

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...)



Offline Ves

Re: passenger-and-mail-classes pak128.britain makeobject script error
« Reply #1 on: Yesterday at 10:57:09 AM »
Did you also compile the makeobj from the passenger-and-mail-classes branch?

Offline nuhgl

Re: passenger-and-mail-classes pak128.britain makeobject script error
« Reply #2 on: Yesterday at 11:08:52 AM »
Yes I have done

Offline Ves

Re: passenger-and-mail-classes pak128.britain makeobject script error
« Reply #3 on: Yesterday at 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.

Offline Rollmaterial

Re: passenger-and-mail-classes pak128.britain makeobject script error
« Reply #4 on: Yesterday at 03:21:12 PM »
You need to change the directories in parameter.mos. By default it contains the paths for building the nightlies.

Offline nuhgl

Re: passenger-and-mail-classes pak128.britain makeobject script error
« Reply #5 on: Yesterday at 03:38:42 PM »
How do I do that?  :o

I attached .mos file.

Offline Rollmaterial

Re: passenger-and-mail-classes pak128.britain makeobject script error
« Reply #6 on: Yesterday at 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.

Offline nuhgl

Re: passenger-and-mail-classes pak128.britain makeobject script error
« Reply #7 on: Yesterday at 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?


Offline Ves

Re: passenger-and-mail-classes pak128.britain makeobject script error
« Reply #8 on: Yesterday at 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. 

Offline nuhgl

Re: passenger-and-mail-classes pak128.britain makeobject script error
« Reply #9 on: Yesterday at 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.  ;)

Offline nuhgl

Re: passenger-and-mail-classes pak128.britain makeobject script error
« Reply #10 on: Yesterday at 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.




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?
« Last Edit: Yesterday at 06:18:09 PM by nuhgl »

Offline Ves

Re: passenger-and-mail-classes pak128.britain makeobject script error
« Reply #11 on: Yesterday at 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:

Code: [Select]
#!/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.

Offline nuhgl

Re: passenger-and-mail-classes pak128.britain makeobject script error
« Reply #12 on: Yesterday at 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

Offline Ves

Re: passenger-and-mail-classes pak128.britain makeobject script error
« Reply #13 on: Yesterday at 08:02:26 PM »
Message sent!

Offline nuhgl

Now I help of Ves I got to stage that it is writing PAKs but simutrans executable doesnt recognise wrote pak...



There is some issue with writing Building ground.Outside.pak  :-[

Offline jamespetts

  • Simitrans-Extended project coordinator
  • Moderator
  • *
  • Posts: 15697
  • Total likes: 395
  • Helpful: 174
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
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.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.