FFP Hyperdart 2, Guru X2 Helicopter and Flashbang X1

Got an idea for OpenTTD? Post it here!

Moderator: OpenTTD Developers

Samu
Traffic Manager
Traffic Manager
Posts: 236
Joined: 17 Apr 2007 14:28

FFP Hyperdart 2, Guru X2 Helicopter and Flashbang X1

Post by Samu »

Hey all! I'd like to suggest the developers to change the FFP Hyperdat 2 aircraft from being a large plane into a small plane. It would be the only small available aircraft with very high speed. Also, the Guru X2 Helicopter shouldn't be missing past 2050, it kind of makes Oil Rigs and Helipads useless.

Who's with me?
Datburg Transport, 2 Jan 2050.png
Datburg Transport, 2 Jan 2050.png (68.25 KiB) Viewed 3517 times
Last edited by Samu on 18 Jun 2010 09:48, edited 1 time in total.
User avatar
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5631
Joined: 13 Sep 2004 13:21
Location: The Moon

Re: FFP Hyperdart 2 and Guru X2 Helicopter

Post by PikkaBird »

The developers aren't going to change things like vehicle statistics which can be modified with newgrfs. You could make a grf to change those two things easily. :)
Samu
Traffic Manager
Traffic Manager
Posts: 236
Joined: 17 Apr 2007 14:28

Re: FFP Hyperdart 2 and Guru X2 Helicopter

Post by Samu »

I can't code t.t :(

Is there a vehicle editor somewhere?
User avatar
Zephyris
Tycoon
Tycoon
Posts: 2897
Joined: 16 May 2007 16:59

Re: FFP Hyperdart 2 and Guru X2 Helicopter

Post by Zephyris »

Samu wrote:I can't code t.t :(?
Have you tried? I couldn't code once too :)
Eddi
Tycoon
Tycoon
Posts: 8289
Joined: 17 Jan 2007 00:14

Re: FFP Hyperdart 2 and Guru X2 Helicopter

Post by Eddi »

if you'd take a look at the newgrf tutorial, you'd notice that the changes you request are not more than a handful of lines that you could copy almost verbatim, just tweaking a couple of numbers.
User avatar
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5631
Joined: 13 Sep 2004 13:21
Location: The Moon

Re: FFP Hyperdart 2 and Guru X2 Helicopter

Post by PikkaBird »

Since I'm feeling generous...

Code: Select all

// Automatically generated by GRFCODEC. Do not modify!
// (Info version 7)
// Escapes: 2+ = 71 = D= = DR 2- = 70 = D+ = DF 2< = 7= = D- = DC 2> = 7! = Du* = DM 2u< = 7< = D* = DnF 2u> = 7> = Du<< = DnC 2/ = 7G = D<< = DO 2% = 7g = D& 2u/ = 7gG = D| 2u% = 7GG = Du/ 2* = 7gg = D/ 2& = 7c = Du% 2| = 7C = D% 2^ 2sto = 2s 2rst = 2r 2+ 2ror = 2rot
// Format: spritenum pcxfile xpos ypos compression ysize xsize xrel yrel
    0 * 4	 03 00 00 00

    1 * 79	 08 07 44 44 F0 02 "Long Helicopter and Small Hyperdart" 00 "Modifies these two default aircraft." 00

    2 * 7	 00 03 01 01 
   27    // guru x2
   04 FF // never expire

    3 * 7	 00 03 01 01
   1E    // FFE Hyperdart
   0A 00 // small aircraft

Last edited by PikkaBird on 02 May 2010 03:39, edited 1 time in total.
User avatar
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5631
Joined: 13 Sep 2004 13:21
Location: The Moon

Re: FFP Hyperdart 2 and Guru X2 Helicopter

Post by PikkaBird »

Yep, I made a mistake. :D Tthe property to change for the helicopter is 04, not 03 - I have fixed it in the NFO above. Encoding the GRF is left as an exercise for the reader. :)
Swansea Stu
Engineer
Engineer
Posts: 72
Joined: 21 Jan 2009 12:24

Re: FFP Hyperdart 2 and Guru X2 Helicopter

Post by Swansea Stu »

I think Pikka is being far too humble. :lol:

I recommend trying his AV8 GRF (available from the content downloader), It has far more aircraft available than the default game vehicles including more planes that can use small airports and futuristic helicopters.

http://users.tt-forums.net/pikka/wiki/i ... Vehicles_3
Samu
Traffic Manager
Traffic Manager
Posts: 236
Joined: 17 Apr 2007 14:28

Re: FFP Hyperdart 2 and Guru X2 Helicopter

Post by Samu »

Aha, I made it!... or Pikka made it! (I think it works, please check it out)

PS: I don't understand anything of those numbers of characters, I'm totally clueless about what they mean, I just copied and pasted it into a .nfo file and used grfcodec.

Is there a way to make it available to download via in-game content? What if I host a game and someone wants to join? How will he download this?
Attachments
hyperdart_guru.tar
(2.5 KiB) Downloaded 88 times
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: FFP Hyperdart 2 and Guru X2 Helicopter

Post by planetmaker »

You could upload it to bananas.

Or you could get OpenGFX+ (which is also not yet on Bananas) and have this newgrf, three trams, some cargo class support for the default rail wagons and a climate-sensitive small airport on top for free, all in one newgrf.
Samu
Traffic Manager
Traffic Manager
Posts: 236
Joined: 17 Apr 2007 14:28

Re: FFP Hyperdart 2 and Guru X2 Helicopter

Post by Samu »

planetmaker wrote:You could upload it to bananas.

Or you could get OpenGFX+ (which is also not yet on Bananas) and have this newgrf, three trams, some cargo class support for the default rail wagons and a climate-sensitive small airport on top for free, all in one newgrf.
Hi, I'm going to try it. ;)

I forgot about one thing, the Toyland aircrafts are different than those from the other tilesets. There is no Small Aircraft available for about 40 years!!!... yet there is still the possibility to build a Small Airport. The vehicle in question is named 'Flashbang X1' - it is already small, but it shouldn't expire. How do I change this?

PS: Toyland seems to get the least love t.t

edit: oops, it's 40 years, I was looking at the concept date.
Samu
Traffic Manager
Traffic Manager
Posts: 236
Joined: 17 Apr 2007 14:28

Re: FFP Hyperdart 2 and Guru X2 Helicopter

Post by Samu »

I'm trying to understand what I have to do to change Flashbang X1 from expiring to never expire. I tried to read the wiki, and I think I got a few things already.

The vehicle ID is 25 for Flashbang X1
To specify the vehicle as aircraft I use 03
The 00 is the Action0 and I have no clue how it's supposed to work, but I'm just buying it
The first 01 is the number of properties I want to change
The second 01 is the number of vehicles going to be changed
04 is the property 'model longevity', and I'm changing it to last forever, FF

So, the end result is 7 changes and a new code "sprite" is added, number 4

Code: Select all

	4 * 7	00 03 01 01
	25	// Flashbang X1
	04 FF	// never expire
Hope I got this correctly. However, I don't understand anything of that 'Escapes' thing, it's way too confusing for me. I don't really get the sprite 1 * 79. Where do those 79 changes come from?
Samu
Traffic Manager
Traffic Manager
Posts: 236
Joined: 17 Apr 2007 14:28

Re: FFP Hyperdart 2, Guru X2 Helicopter and Flashbang X1

Post by Samu »

I can't get this to work, can someone help?
Yexo
Tycoon
Tycoon
Posts: 3663
Joined: 20 Dec 2007 12:49

Re: FFP Hyperdart 2, Guru X2 Helicopter and Flashbang X1

Post by Yexo »

http://wiki.ttdpatch.net/tiki-index.php?page=VehicleIDs wrote:

Code: Select all

250	23	Flashbang X1
251	24	Juggerplane M1
252	25	Flashbang Wizzer
Your code changes the flashbang wizzer, not the flashbang x1. The rest of it looks ok.


And slightly offtopic but maybe still helpful, the same code in nml:

Code: Select all

item(FEAT_AIRCRAFT, flashbang_x1, 0x23) {
	property {
		model_life: VEHICLE_NEVER_EXPIRES;
	}
}
Samu
Traffic Manager
Traffic Manager
Posts: 236
Joined: 17 Apr 2007 14:28

Re: FFP Hyperdart 2, Guru X2 Helicopter and Flashbang X1

Post by Samu »

I noticed it too, and tried to fix it, but it still doesn't work.

This is what I'm doing:

Code: Select all

// Automatically generated by GRFCODEC. Do not modify!
// (Info version 7)
// Format: spritenum pcxfile xpos ypos compression ysize xsize xrel yrel
    0 * 4	 03 00 00 00
    1 * 133	 08 07 "DDð" 02 "Patch FFP Hyperdart, Guru "
	 "X2, Flashbang X1" 00 "FFP Hyperdart changed "
	 "to small aircraft. Guru X2 and Flashbang "
	 "X1 no longer expire." 00
    2 * 10	 00 03 01 02 27 04 FF 23 04 FF
    3 * 7	 00 03 01 01 1E 0A 00
Doesn't work. What happens is that the Toyland helicopter disappears when I use this and start a game in 2050.
Yexo
Tycoon
Tycoon
Posts: 3663
Joined: 20 Dec 2007 12:49

Re: FFP Hyperdart 2, Guru X2 Helicopter and Flashbang X1

Post by Yexo »

I've annotated what your code actually does
Samu wrote:

Code: Select all

    2 * 10	 00 03 01
 02 //change 2 vehicles
27 // id of first vehicle to change
04 // property to change 
FF // value for first vehicle (with id 27 + 0 = 27)
23 // value for second vehicle (with id = 27 + 1 = 28)
04 FF // unused
If you want to change 2 vehicles and their ids are not consecutive you need 2 action0's.
Samu
Traffic Manager
Traffic Manager
Posts: 236
Joined: 17 Apr 2007 14:28

Re: FFP Hyperdart 2, Guru X2 Helicopter and Flashbang X1

Post by Samu »

Now it says invalid ini when I start the game... aha, I'm so newb to this.

Code: Select all

D:\ImagensCD\OpenTTD>grfcodec -e patch.grf
GRFCodec version 0.9.10 - Copyright (C) 2000-2005 by Josef Drexler
Encoding in temporary file patch.new
Sprite    4  Done: 80%  Compressed:100% (Transparency:100%, Redundancy:100%)
Deleting patch.grf
Replacing patch.grf with patch.new

Done!

D:\ImagensCD\OpenTTD>

Code: Select all

// Automatically generated by GRFCODEC. Do not modify!
// (Info version 7)
// Format: spritenum pcxfile xpos ypos compression ysize xsize xrel yrel
	0 * 5	04 00 00 00 00
	1 * 133	08 07 44 44 F0 02 "Patch FFP Hyperdart, Guru X2, Flashbang X1" 00 "FFP Hyperdart changed to small aircraft. Guru X2 and Flashbang X1 no longer expire." 00
	2 * 7	00 03 01 01
	27	//	Guru X2
	04 FF	//	never expire
	3 * 7	00 03 01 01
	23	//	Flashbang X1
	04 FF	//	never expire
	4 * 7	00 03 01 01
	1E	//	FFP Hyperdart
	0A 00	//	small aircraft
Samu
Traffic Manager
Traffic Manager
Posts: 236
Joined: 17 Apr 2007 14:28

Re: FFP Hyperdart 2, Guru X2 Helicopter and Flashbang X1

Post by Samu »

ALP!!! ALP MEH!!! lol
User avatar
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5631
Joined: 13 Sep 2004 13:21
Location: The Moon

Re: FFP Hyperdart 2, Guru X2 Helicopter and Flashbang X1

Post by PikkaBird »

Accurate error messages are always helpful.
Samu
Traffic Manager
Traffic Manager
Posts: 236
Joined: 17 Apr 2007 14:28

Re: FFP Hyperdart 2, Guru X2 Helicopter and Flashbang X1

Post by Samu »

No error message at all this time. It just doesn't get listed, not ever when I reload, reload!
Attachments
sem nome1.png
patch.tar
(2.5 KiB) Downloaded 81 times
Post Reply

Return to “OpenTTD Suggestions”

Who is online

Users browsing this forum: Ahrefs [Bot] and 14 guests