#1 14.07.2018 10:26:18

Wahazar
Player
Posts: 137

Longboat and Flagship graphics

Longboat and Flagship Frigate graphics are slightly misleading - it would be not an issue, if there will be option for client to change it.
Unfortunately server settings force trireme and frigate graphics regardless of local settings, there is:

graphic       = "u.trireme"
graphic_alt   = "-"

should be:

graphic       = "u.longboat"
graphic_alt   = "u.trireme"

Same with Flagship Frigate:

graphic       = "u.flagship_frigate"
graphic_alt   = "u.frigate"

These improved settings allow client to define proper image, and in case of lack of this image, they use alternative default image, as it should be.
Longboat images exists already,
amplio2: http://forum.freeciv.org/f/download/file.php?id=1189
trident: http://forum.freeciv.org/f/download/file.php?id=1185

I can make Flagship Frigate if anybody wishes.

Offline

#2 14.07.2018 17:46:43

wieder
Administrator
Posts: 1,592

Re: Longboat and Flagship graphics

Thanks!

I've added this to the ruleset.

Offline

#3 14.07.2018 18:44:23

Sketlux
Player
From: Germany
Posts: 143

Re: Longboat and Flagship graphics

So my graphics will be displayed in the game now/soon??? :-)

Will gladly do more if this works upon request. But I want graphical proof that it does!

Offline

#4 14.07.2018 21:46:25

Wahazar
Player
Posts: 137

Re: Longboat and Flagship graphics

Sketlux wrote:

So my graphics will be displayed in the game now/soon??? :-)

Probably only in new game or after server restart.

EDIT: server restarted, it works. Not quite as intended, seems that wieder defined u.longboat for trireme instead of longboat, because I see them swapped. But it is something smile

Last edited by Wahazar (15.07.2018 10:04:58)

Offline

#5 16.07.2018 10:51:42

Wahazar
Player
Posts: 137

Re: Longboat and Flagship graphics

If anyone willing to see longboat graphics, he need to download this graphics using links above, drop it to the amplio or trident dir, depending which tileset is in use, and change apropriate unit.spec file.
Example for amplio2 - paste this at the end of amplio2/unit.spec :

[extra]
sprites =
    {    "tag", "file"
        "u.longboat", "amplio2/Longship3"
    }

Offline

#6 16.07.2018 14:27:30

Sketlux
Player
From: Germany
Posts: 143

Re: Longboat and Flagship graphics

Any other units you want special graphics for?

Offline

#7 16.07.2018 14:47:48

wieder
Administrator
Posts: 1,592

Re: Longboat and Flagship graphics

Sorry. I made a mistake when placing those definitions on the ruleset. That is now fixed and can be used if or when the game is reloaded next time.

Could you give us step by step instructions about how to use the added graphics?

Offline

#8 16.07.2018 15:20:17

Wahazar
Player
Posts: 137

Re: Longboat and Flagship graphics

Sketlux wrote:

Any other units you want special graphics for?

Flagship frigate? Based on normal frigate, maybe large cannons or smth? Different flags on masts? Sail colours/logo?


wieder wrote:

Could you give us step by step instructions about how to use the added graphics?

I added example for amplio above.

For trident method of it is not working (error was thrown), thus I prepared whole unit.png with longboat added:
http://149.156.194.203/~mczapkie/fc/new/units.png
put this file to trident directory (replace old one) and add this to trident/unit.spec:

  1, 18, "u.longboat"

just below   2, 16, "u.refugee".


trident and amplio directories location depend on your operating system and method of installation, try search file.

Last edited by Wahazar (16.07.2018 15:22:10)

Offline

#9 16.07.2018 16:55:26

HanduMan
Player
Posts: 108

Re: Longboat and Flagship graphics

Wahazar wrote:

For trident method of it is not working (error was thrown)

There should be no difference between tilesets how the spec files are processed. The spec files need to end with (at least one) empty line. Maybe that was the problem with trident?

If you are going to include more special graphics I think the best practise would be to create a new img file for all new sprites with supporting spec file and add that spec file in the file list in the .tilespec file.

Last edited by HanduMan (16.07.2018 17:02:07)

Offline

#10 16.07.2018 20:10:27

Sketlux
Player
From: Germany
Posts: 143

Re: Longboat and Flagship graphics

Flagship frigate? Based on normal frigate, maybe large cannons or smth? Different flags on masts? Sail colours/logo?

Done. Refurbished also the amplio longship who had a weird looking sail...

Hope you like it!

http://forum.freeciv.org/f/viewtopic.ph … 947#p98947

Offline

#11 17.07.2018 14:12:06

Wahazar
Player
Posts: 137

Re: Longboat and Flagship graphics

HanduMan, you was right about last empty line, error explanations was not informative, now it works OK.
I prepared modpack for easy substitution for both amplio and trident here:
http://forum.freeciv.org/f/viewtopic.php?f=20&t=90370
many thanks for Sketlux/XYZ efforts!

Offline

#12 23.07.2018 01:19:15

Hans_Lemurson
Player
From: Silicon Valley
Posts: 139

Re: Longboat and Flagship graphics

I followed Wahazar's instructions, put the LT folder into the data directory and added a line in the file "units.spec"

; Include Longturn Units
*include  "LT/units_t.spec"

And the new graphics show up!  Yay!

0cT7aiV.png
Unfortunately, the Trireme and Longboat are backwards. sad
(minor spoilers from LT44: I have a navy)

The Flagship is in the right place though, shows up in the Tech screen and 'Pedia.

Offline

Board footer

Powered by FluxBB