Wired

Discuss, get help with, or post new graphics for TTDPatch and OpenTTD, using the NewGRF system, here. Graphics for plain TTD also acceptable here.

Moderator: Graphics Moderators

SimYouLater
Chief Executive
Chief Executive
Posts: 676
Joined: 03 Apr 2016 20:19

Re: Wired

Post by SimYouLater »

Can you please explain this section of code?

Code: Select all

#define IMAGEFILE1  "tele_gui.png"
#define IMAGEFILE2  "crossing1.png"

spriteset(tele_level_crossings_open)
{
  level_crossings_railway_template(2, 349, IMAGEFILE1)
  level_crossings_1_template(10, 133, IMAGEFILE2)
}
The nml compiler doesn't like it for some reason, so until I know what's wrong, I can't add WIRED to the Recycled Infrastructure Set.

Thanks in advance, I'll make sure to credit you!

EDIT:

I had to copy and paste a few image directories in the code because I couldn't get the #define to work.

Now the issue is one that makes no sense...

Code: Select all

default:	    	[b]gui_phone_graphic_switch[/b];
This appears nowhere else in the source you provided, and it's bringing up an error because it can't find the identifier. Help, please?
Licenses for my work...
You automatically have my permission to re-license graphics or code by me if needed for use in any project that is not GPL v2, on the condition that if you release any derivatives of my graphics they're automatically considered as ALSO GPL v2 (code may remain unreleased, but please do provide it) and carry this provision in GPL v2 uses.
Please ask someone in-the-know to be sure that the graphics are done by me. Especially TTD-Scale, long story.

McZapkie
Tycoon
Tycoon
Posts: 1182
Joined: 18 Jan 2014 18:10

Re: Wired

Post by McZapkie »

Sorry, I lost my laptop with original sources :(
But you can browse https://dev.openttdcoop.org/projects/wired/repository and find appropriate older version.

SimYouLater
Chief Executive
Chief Executive
Posts: 676
Joined: 03 Apr 2016 20:19

Re: Wired

Post by SimYouLater »

McZapkie wrote:Sorry, I lost my laptop with original sources :(
But you can browse https://dev.openttdcoop.org/projects/wired/repository and find appropriate older version.
Never mind, I've already dissected the source from the page you linked and am having issues you apparently don't remember how you solved.
Licenses for my work...
You automatically have my permission to re-license graphics or code by me if needed for use in any project that is not GPL v2, on the condition that if you release any derivatives of my graphics they're automatically considered as ALSO GPL v2 (code may remain unreleased, but please do provide it) and carry this provision in GPL v2 uses.
Please ask someone in-the-know to be sure that the graphics are done by me. Especially TTD-Scale, long story.

pies_1
Engineer
Engineer
Posts: 1
Joined: 01 Aug 2020 16:00

Re: Wired

Post by pies_1 »

Hi McZapkie,
Have you considered rewriting this newgrf as a roadtype, instead of a railtype, as it now possible as of 1.10? This would allow the opposite facing carriers to pass each other without the need for branching and signaling. I think it would greatly improve the playability, especially in the case of complex interconnecting networks.

Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: Google Adsense [Bot] and 22 guests