Transport Tycoon Forums

The place to talk about Transport Tycoon
It is currently Sun Dec 16, 2018 12:20 am

All times are UTC




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Fri May 11, 2018 6:10 pm 
Offline
Engineer
Engineer
User avatar

Joined: Sun Aug 24, 2014 12:20 pm
Posts: 83
Location: Kaon Prison, Cybertron
So I was having issues with other methods to "patch" (as I call it) pnml files into the one nml file that NMLC can read.
So I decided to write my own "patcher" myself in Python (sounding like a good idea as NMLC already needs python), and since I think I've made it robust enough I believe I should share it with the community!
Download link!
I'm distributing it under Creative Commons Attribution-NonCommercial-ShareAlike 4.0

So far it can read references from pnml files (#include "example.pnml") to patch together and use custom variable definitions for reference in the code (#define CUSTOM_DEFINITION 288).
The rest will just be written directly to the nml file to be compiled.

The definition does NOT currently work with function-like definitions.

Please give any feedback, it is much appreciated :P

I hope you enjoy!

Edit 26 05 18: Use the download link above, includes full example and license

_________________
Some links to stuff I've made:
-=RUKTS=- | -=NML Py-Patcher (a Python 3.0 pre-compiler)=- | -=Screenshots=- | -=Doom Soundtrack port to OpenTTD=-


Image


Last edited by FulliAutomatix on Sat May 26, 2018 10:43 pm, edited 3 times in total.

Top
   
PostPosted: Mon May 21, 2018 5:00 pm 
Offline
Tycoon
Tycoon
User avatar

Joined: Sat Mar 31, 2007 2:23 pm
Posts: 4713
Location: Lost in Music
This is pretty neat. :D Didn't want your thread to just pass by silently.

_________________
FIRS Industry Replacement Set (Released) | HEQS Heavy Equipment Set (trucks, industrial trams and more) (Finished)
Squid Ate FISH (ships) (Released) | CHIPS Has Improved Players' Stations (Finished)
Iron Horse (trains, released) | Termite (tracks for Iron Horse, released) | Busy Bee (game script, released)

Road Hog (road vehicles, released)


Top
   
PostPosted: Tue May 22, 2018 5:59 pm 
Offline
Transport Coordinator
Transport Coordinator
User avatar

Joined: Sat Oct 14, 2017 11:06 am
Posts: 380
Location: Mariupol, Ukraine.
You're god man :bow: :bow: :bow:

_________________
Image
Sprite artist and NewGRF developer, NML coder. My projects:
Screenshots: New York City Subway Episodes
NewGRFs: Not Enough Subways Set | North American Passenger Railroads | Elevated Subway Bridge | Over-sized Train Set | Tony Pixel's Subway Equipment Set

I use GPLv2+ license.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000-2018 phpBB Limited

Copyright © Owen Rudge/The Transport Tycoon Forums 2001-2018.
Hosted by Zernebok Hosting.