Author Topic: Change Geoscape Background?  (Read 6999 times)

Offline ParGellen

  • Sergeant
  • **
  • Posts: 14
    • View Profile
Change Geoscape Background?
« on: November 05, 2017, 08:22:19 pm »
Is it possible to change the Geoscape background to just a field of stars? What file would I need to edit?

Offline Hobbes

  • Commander
  • *****
  • Posts: 2102
  • Infiltration subroutine in progress
    • View Profile
Re: Change Geoscape Background?
« Reply #1 on: November 06, 2017, 05:25:07 pm »
What file would I need to edit?

GEOBORD.SCR

You don't need to edit this file, you can simply use a ruleset to tell the game to use a different image file (PNG format, 320x200 dimensions) instead of the vanilla GEOBORD.SCR

Offline ParGellen

  • Sergeant
  • **
  • Posts: 14
    • View Profile
Re: Change Geoscape Background?
« Reply #2 on: November 07, 2017, 02:54:28 am »
Ok cool. Unfortunately I have no idea how to edit a ruleset or even where they are located. How do I find them? Google has been no help :(

--- posts merged ---

When I try to open that geobord.scr file with notepad it is just a bunch of random characters. Is that the ruleset? If so how do you edit it? Everything I can find searching these forums seems to think I should already know everything about rulesets but I can't even find them in my OpenXcom installation. I'm 100% sure I could do this if I just knew how to get started. Please help.
« Last Edit: November 07, 2017, 07:55:28 pm by Solarius Scorch »

Offline Gordonmull

  • Sergeant
  • **
  • Posts: 36
    • View Profile
Re: Change Geoscape Background?
« Reply #3 on: November 07, 2017, 12:15:45 pm »
I'm not much of a modder but hopefully this might be of some help: https://www.ufopaedia.org/index.php/Rulesets_(OpenXcom)

Offline Warboy1982

  • Administrator
  • Commander
  • *****
  • Posts: 2333
  • Developer
    • View Profile
Re: Change Geoscape Background?
« Reply #4 on: November 07, 2017, 12:48:57 pm »
.rul files are what you're looking for.
you'll want to make a mod, the ruleset for your mod would be something like:

Code: [Select]
extraSprites:
  - type: GEOBORD.SCR
    width: 320
    height: 200
    singleImage: true
    files:
      0: Path/To/Your/File.png

if you're daunted by the whole process, try downloading a simple mod that does something similar to see how it does it.

Offline ParGellen

  • Sergeant
  • **
  • Posts: 14
    • View Profile
Re: Change Geoscape Background?
« Reply #5 on: November 07, 2017, 01:49:56 pm »
Thanks for the pointers guys. I had the same thought about downloading a mod that changes the background and then just trying to alter it. I'll see what I can find.

--- posts merged, please don't double-post without a good reason ---

Ok I figured out how to change the background. Unfortunately it refuses to only do white stars (keeps changing them to rainbow colors even though the only colors in the file are black and white dots) and also totally borks the buttons on the side. I guess I'll just stick with the default background. I didn't realize such a simple thing would be this difficult.
« Last Edit: November 07, 2017, 07:56:26 pm by Solarius Scorch »

Offline Hobbes

  • Commander
  • *****
  • Posts: 2102
  • Infiltration subroutine in progress
    • View Profile
Re: Change Geoscape Background?
« Reply #6 on: November 07, 2017, 03:00:36 pm »
I didn't realize such a simple thing would be this difficult.

No one said that modding is easy ;)

Quote
Ok I figured out how to change the background. Unfortunately it refuses to only do white stars (keeps changing them to rainbow colors even though the only colors in the file are black and white dots) and also totally borks the buttons on the side. I guess I'll just stick with the default background.

The reason why you're getting rainbow colors is because you need to convert the palette of your image to the ones used by the game.

Offline ParGellen

  • Sergeant
  • **
  • Posts: 14
    • View Profile
Re: Change Geoscape Background?
« Reply #7 on: November 07, 2017, 03:39:12 pm »
Quote from: Hobbes
No one said that modding is easy ;)

Fair enough :) I actually think I've figured out how to fix the buttons.

Quote from: Hobbes
The reason why you're getting rainbow colors is because you need to convert the palette of your image to the ones used by the game.

That sounds like something I can do. Which palette is it?

Offline Hobbes

  • Commander
  • *****
  • Posts: 2102
  • Infiltration subroutine in progress
    • View Profile
Re: Change Geoscape Background?
« Reply #8 on: November 07, 2017, 04:03:26 pm »
That sounds like something I can do. Which palette is it?

I've attached to this post the palettes used by the game in .pal format. You can also simply use an image from an existing mod and export that palette to your own image.

You can read more about the palettes used by XCOM here: https://www.ufopaedia.org/index.php/PALETTES.DAT

Offline ParGellen

  • Sergeant
  • **
  • Posts: 14
    • View Profile
Re: Change Geoscape Background?
« Reply #9 on: November 08, 2017, 01:59:03 am »
Thanks!

Offline long6oarder

  • Captain
  • ***
  • Posts: 53
  • Your X-Com must be quite precious to you...
    • View Profile
Re: Change Geoscape Background?
« Reply #10 on: November 11, 2017, 11:43:12 am »
Hey Hobbes,

Do you know if there has ever been any talk about updating the geoscape itself? It seems like it would be possible to change it to something that better reflects the quality of the rest mods and updates rather than the low-poly, chunky geoscape leftover from the original game.

Offline Hobbes

  • Commander
  • *****
  • Posts: 2102
  • Infiltration subroutine in progress
    • View Profile
Re: Change Geoscape Background?
« Reply #11 on: November 11, 2017, 06:28:37 pm »
Do you know if there has ever been any talk about updating the geoscape itself? It seems like it would be possible to change it to something that better reflects the quality of the rest mods and updates rather than the low-poly, chunky geoscape leftover from the original game.

If you change the Geoscape you're limited to using the polygon system

Offline ohartenstein23

  • Commander
  • *****
  • Posts: 1933
  • Flamethrowers fry cyberdisk circuits
    • View Profile
Re: Change Geoscape Background?
« Reply #12 on: November 11, 2017, 08:01:01 pm »
You can always use more polygons for greater resolution, but it takes a lot of work.

Offline Hobbes

  • Commander
  • *****
  • Posts: 2102
  • Infiltration subroutine in progress
    • View Profile
Re: Change Geoscape Background?
« Reply #13 on: November 11, 2017, 08:50:46 pm »
You can always use more polygons for greater resolution, but it takes a lot of work.

And the more polygons you use, the more the geometric shapes will be noticed.

There's one mod called 'Improved Nations' which contains a reworked Geoscape that I imported to the Terrain Pack/Area 51 - I had to remove several polygons because features like the delta of the River Nile look too artificial
« Last Edit: November 11, 2017, 08:52:49 pm by Hobbes »

Offline long6oarder

  • Captain
  • ***
  • Posts: 53
  • Your X-Com must be quite precious to you...
    • View Profile
Re: Change Geoscape Background?
« Reply #14 on: November 12, 2017, 03:52:13 pm »
I see. Thanks for replying. :)

Has anyone done a LP of Area 51 which shows this 'improved nations' mod in action?