Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Player nation icon on the global map

A topic by xxxLEOPARDxxx created Apr 15, 2021 Views: 323 Replies: 4
Viewing posts 1 to 3
(2 edits)

Is it possible to display the icon of the player's nation on the global map, as is done in corsairs to each his own?

They have open source code, I think it will not be difficult to find it there.

In every case, I will duplicate the link to the source code of the engine https://github.com/storm-devs/storm-engine

Hi. Maelstrom Engine can't use code from Storm Engine, since  it will violate GPLv3 license:
https://github.com/storm-devs/storm-engine/blob/develop/LICENSE.txt
GPLv3 is copyleft license. If you want to copy some GPLv3 code to your project, then you need to open source it under GPLv3. Check this FAQ: http://gplv3.fsf.org/dd3-faq

You don't have to copy it from the Storm Engine. But make an analogue.

It's just that many are asking to add it, but we cannot do it.

(1 edit) (+1)

Added today.

In your scripts:

Add to messages.h

#define MSG_WORLDMAP_FLAG_SET 31140

In function wdmCreateWorldMap()

worldMap.showFlag.texture = "flagall.tga.tx";  //path to texture if not in root: "WorldMap\Interfaces\texturename.tga.tx"
worldMap.showFlag.count = 8; //Count of icon maps within texture file, only supports a single row texture file, but as many icons across the row,  indicated with this value

Anytime after CreateEntity(&worldMap,"worldmap") make it a valid active entity object, you can send a message to change the index number of the flag you want:

SendMessage(&worldMap, "ll", MSG_WORLDMAP_FLAG_SET,  integerforIconNumber); //Zero based array

Deleted 3 years ago

Yes thank you. It worked as it should.