Jump to content

Modding In Agencies?


Recommended Posts

OK, if this is in the wrong section, you might as well move it.

If you look at the game files, you can see that agencies are mostly just CONFIG files mixed in with PNGs for the logos. However, there appears to be a "TRUECOLORS" file that Notepad cannot understand. If we can figure this out, we can mod in agencies.

Has anyone done this successfully? Thanks!

Link to comment
Share on other sites

The truecolor files are very small textures, I quickly extracted the C7 one, it's this

aGGYinc.png

It was a very lossy extraction, but you can open this in gimp, presumably photoshop and anything else worth using.

Presumably this file is used in the UI where the full size PNG texture is unnecessary.

One thing to keep in mind is that the GameDatabase throws away file extensions, so there's no particular need to stick with truecolor either. I'm not aware of any reason to use that file type, but I'm not familiar with it either.

Edited by Greys
Link to comment
Share on other sites

I added an agency that will be in my next station parts update, GingerCorp.

I have yet to see GingerCorp offer any jobs but I do notice that its logo that I added is immediately available as a flag....

Also, I just used a png for the GingerCorp_scaled texture and as near as I can tell, it did load up fine.

Edit: texture scales are

256 x 160 for the main logo

64 x 40 for the scaled logo

Edited by Starwaster
Link to comment
Share on other sites

I have yet to see GingerCorp offer any jobs but I do notice that its logo that I added is immediately available as a flag....

Also, I just used a png for the GingerCorp_scaled texture and as near as I can tell, it did load up fine.

Yeah, the big agency logo is the same size as the flag. So I guess KSP just assumes that it is one regardless of where the file is actually stored.

I have seen a few regular contracts pop up using my company logo, but it seems fairly uncommon, I guess because there's so many. It's easy to specify an agency when you're creating custom contracts though, so anyone making new ones can force it use their own, or to just prefer their own if you want.

Link to comment
Share on other sites

Yeah, the big agency logo is the same size as the flag. So I guess KSP just assumes that it is one regardless of where the file is actually stored.

I have seen a few regular contracts pop up using my company logo, but it seems fairly uncommon, I guess because there's so many. It's easy to specify an agency when you're creating custom contracts though, so anyone making new ones can force it use their own, or to just prefer their own if you want.

When picking an agency for a contract, it depends to some extent on the agency's mentality that you set up for it. Some mentalities are suited to certain contracts and some aren't

Also, if you further want to influence your agency showing up, I think it helps to have some parts whose manufacturer is the same as the agency name. I'm not sure if this next part helps or not but I added this to GingerCorp's station hubs so they could show up in part testing contracts. So far, it hasn't but I think it will help. We'll see.

Some of the fields I found from looking at similarly configured parts and some from trying to set one up in code and seeing what fields it had. (those are commented out; I'm not sure they can be configured in parts, they might be internal only or manipulated through contract code)


MODULE
{
name = ModuleTestSubject

// nowhere: 0, srf: 1, ocean: 2, atmo: 4, space: 8
environments = 9
//TestNotes = Give the hub a thorough checkout. Check plumbing and wiring conduits for leaks and shorts.
//isTestSubject
//isExperimentalPart

useStaging = False
useEvent = True
}

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...