• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Sniforge

Recruit
Jan 25, 2019
2
0
Hello everyone. So i was playing around with the mod editor and i figured out how to make a logo a custom sponsor etc. made my own logo its shows up on the planet view as well when you are making your new game etc, all that works fine. But i noticed that my rockets do not show my logo, and the flags that you can place on your planet show the default hand shake logo. I would like to know exactly how to fix this and add my own logo to both the rocket and the flags.

I am not a modder, nor do i understand allot about coding, so please if you could dumb this down for beginners it would be great.

Thank you :)
 

Attachments

  • 20190125200317_1.jpg
    20190125200317_1.jpg
    278,9 KB · Views: 34
Ok as a follow up for my question, i kinda figured out how to change the flag, in a way.. i know how to change it using existing entities but when i go to create a new entity i can not simply use an image file, i need some sort of .ENT file whatever that is (guessing entity 3d file) Any ideas how i could simply make an ENT file with a simple image that does not require me using blender or 3dmax ? lol
 
I don't know if this is any easier, but here's what I use:
Code:
-- this just converts the image to the ent, you'll still need to add a logo and entity entry in the mod editor.
-- stick this in a "Script" file and load the mod

-- try to make it somewhat unique as this will be used as it's entity name in-game.
local image_file = "somefile.png"
-- AppData = C:\Users\USERNAME\AppData\Roaming\Surviving Mars (works with linux/mac as well, it's whatever your sm profile is).
local image_path = "AppData/"
-- you'll have to open up metadata.lua or check it out in the mod editor, look for id (not steam_id).
local mod = Mods.MOD_ID

ModItemDecalEntity.Import(nil,
    ModItemDecalEntity:new{
        entity_name = image_file,
        name = image_file,
        filename = ConvertToOSPath(string.format("%s%s",image_file,image_path)):gsub("\\","/"),
        mod = mod,
    }
)

print("Convert image to logo: All done!")
 
Your logo image has to be a square with resolution multiple of a power of 2, e.g. 256x256, 1024x1024, etc. If it is not, it may not render correctly or at all, which might be what you describe. Also, there was some other bug with the logo mod editor and it not showing in-game which should be patched in the upcoming update.