Ludeon Forums

Ludeon Forums

  • August 05, 2021, 07:49:32 AM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 12 13 [14]

Author Topic: RimWorld art source  (Read 151891 times)

dearmad

  • Colonist
  • ***
  • Posts: 129
  • Refugee
    • View Profile
Re: RimWorld core art source
« Reply #195 on: March 01, 2020, 09:57:51 PM »

I replaced some of the texture\ui\commands\ files in a mod. And they aren't working while my designators directory IS working. Anyone have an idea why. I sued the same psd size, everything, etc.

Help?
Logged

Moogie

  • Drifter
  • **
  • Posts: 22
  • Refugee
    • View Profile
Re: RimWorld core art source
« Reply #196 on: April 01, 2020, 10:01:05 AM »

I'm having the same trouble. I'm trying to replace snow/ice textures.

The ice texture replaced fine. Its path is: Textures\Terrain\Surfaces\Ice.png

But the snow refuses to work. Its paths are:  Textures\Terrain\Other\Snow.png and Textures\Weather\Overlays\SnowWorldOverlay.png

The filenames are correct and the paths, according to the art source, should also be correct.


Hmm. Had a closer look in the code and the actual path seems to be Materials\Misc\Snow and Materials\Weather... I think? But that's materials, right? Not textures? I couldn't find any mention of where "MatLoader" gets its texture paths from.

"MatBases" is the only place in the whole code where the word Snow even appears. I think it's forced to load from the resources.assets archive and not able to be modded without entirely changing how the whole darn thing works. But I don't know. I'm firing into the dark with all this.

Any clues?

Code: [Select]
using System;
using UnityEngine;

namespace Verse
{
// Token: 0x02000451 RID: 1105
[StaticConstructorOnStartup]
public static class MatBases
{
// Token: 0x040013FF RID: 5119
public static readonly Material LightOverlay = MatLoader.LoadMat("Lighting/LightOverlay", -1);

// Token: 0x04001400 RID: 5120
public static readonly Material SunShadow = MatLoader.LoadMat("Lighting/SunShadow", -1);

// Token: 0x04001401 RID: 5121
public static readonly Material SunShadowFade = MatBases.SunShadow;

// Token: 0x04001402 RID: 5122
public static readonly Material EdgeShadow = MatLoader.LoadMat("Lighting/EdgeShadow", -1);

// Token: 0x04001403 RID: 5123
public static readonly Material IndoorMask = MatLoader.LoadMat("Misc/IndoorMask", -1);

// Token: 0x04001404 RID: 5124
public static readonly Material FogOfWar = MatLoader.LoadMat("Misc/FogOfWar", -1);

// Token: 0x04001405 RID: 5125
public static readonly Material Snow = MatLoader.LoadMat("Misc/Snow", -1);
}
}

Code: [Select]
using System;
using System.Collections.Generic;
using UnityEngine;

namespace Verse
{
// Token: 0x02000453 RID: 1107
public static class MatLoader
{
// Token: 0x060020C2 RID: 8386 RVA: 0x000C86D8 File Offset: 0x000C68D8
public static Material LoadMat(string matPath, int renderQueue = -1)
{
Material material = (Material)Resources.Load("Materials/" + matPath, typeof(Material));
if (material == null)
{
Log.Warning("Could not load material " + matPath, false);
}
MatLoader.Request key = new MatLoader.Request
{
path = matPath,
renderQueue = renderQueue
};
Material material2;
if (!MatLoader.dict.TryGetValue(key, out material2))
{
material2 = MaterialAllocator.Create(material);
if (renderQueue != -1)
{
material2.renderQueue = renderQueue;
}
MatLoader.dict.Add(key, material2);
}
return material2;
}

// Token: 0x04001406 RID: 5126
private static Dictionary<MatLoader.Request, Material> dict = new Dictionary<MatLoader.Request, Material>();

// Token: 0x0200161C RID: 5660
private struct Request
{
// Token: 0x06008192 RID: 33170 RVA: 0x0029BF63 File Offset: 0x0029A163
public override int GetHashCode()
{
return Gen.HashCombineInt(Gen.HashCombine<string>(0, this.path), this.renderQueue);
}

// Token: 0x06008193 RID: 33171 RVA: 0x0029BF7C File Offset: 0x0029A17C
public override bool Equals(object obj)
{
return obj is MatLoader.Request && this.Equals((MatLoader.Request)obj);
}

// Token: 0x06008194 RID: 33172 RVA: 0x0029BF94 File Offset: 0x0029A194
public bool Equals(MatLoader.Request other)
{
return other.path == this.path && other.renderQueue == this.renderQueue;
}

// Token: 0x06008195 RID: 33173 RVA: 0x0029BFB9 File Offset: 0x0029A1B9
public static bool operator ==(MatLoader.Request lhs, MatLoader.Request rhs)
{
return lhs.Equals(rhs);
}

// Token: 0x06008196 RID: 33174 RVA: 0x0029BFC3 File Offset: 0x0029A1C3
public static bool operator !=(MatLoader.Request lhs, MatLoader.Request rhs)
{
return !(lhs == rhs);
}

// Token: 0x06008197 RID: 33175 RVA: 0x0029BFCF File Offset: 0x0029A1CF
public override string ToString()
{
return string.Concat(new object[]
{
"MatLoader.Request(",
this.path,
", ",
this.renderQueue,
")"
});
}

// Token: 0x04005488 RID: 21640
public string path;

// Token: 0x04005489 RID: 21641
public int renderQueue;
}
}
}
« Last Edit: April 01, 2020, 12:12:02 PM by Moogie »
Logged

Napoleonite

  • Drifter
  • **
  • Posts: 48
  • Refugee
    • View Profile
Re: RimWorld core art source
« Reply #197 on: April 10, 2020, 12:11:29 PM »

Did anybody extract the 1.1 textures yet?
Logged

SargBjornson

  • Colonist
  • ***
  • Posts: 350
  • Refugee
    • View Profile
Re: RimWorld core art source
« Reply #198 on: April 10, 2020, 04:06:26 PM »

They are pinned at the art channel in RimWorld's Discord

IngoKnieto

  • Muffalo
  • *
  • Posts: 3
  • Refugee
    • View Profile
Re: RimWorld core art source
« Reply #199 on: June 29, 2020, 11:40:13 AM »

What is the Discord link?

I can't join using https://discord.gg/rimworld
Logged

SargBjornson

  • Colonist
  • ***
  • Posts: 350
  • Refugee
    • View Profile
Re: RimWorld core art source
« Reply #200 on: July 04, 2020, 03:58:30 AM »

That's the invite link, yeah

Tynan

  • Developer
  • Administrator
  • Transcendent
  • *****
  • Posts: 12474
    • View Profile
    • Tynan's Blog
Re: RimWorld core art source
« Reply #201 on: July 26, 2020, 11:06:17 PM »

I have updated the art source files with the latest art.
Logged
Tynan Sylvester - @TynanSylvester - Tynan's Blog

ethouiche

  • Colonist
  • ***
  • Posts: 187
  • Refugee
    • View Profile
Re: RimWorld core art source
« Reply #202 on: September 07, 2020, 12:22:57 PM »

Could it be possible to have a link to the raw png results ?
I feel these textures are more useful as an inspiration than as a working tools which psd files with layers are.
Png files are easier to browse through. 2 versions, with and without the folder structure, would be interesting too.
« Last Edit: September 07, 2020, 12:26:54 PM by ethouiche »
Logged

Tynan

  • Developer
  • Administrator
  • Transcendent
  • *****
  • Posts: 12474
    • View Profile
    • Tynan's Blog
Re: RimWorld core art source
« Reply #203 on: September 07, 2020, 01:59:43 PM »

Can't you just extract those from the game using the usual tools?
Logged
Tynan Sylvester - @TynanSylvester - Tynan's Blog

ethouiche

  • Colonist
  • ***
  • Posts: 187
  • Refugee
    • View Profile
Re: RimWorld core art source
« Reply #204 on: September 08, 2020, 12:59:52 PM »

I think you are refering to this : https://rimworldwiki.com/wiki/Modding_Tutorials/Assets
I dont have these tools. My feeling is that if one person makes the textures available, it allows hundreds of other people to not download the tools and process the files. I think it would be a nice download/hard drive space/processing saving overall.
I imagine you dont want your assets to be directly available without any effort to provide and it makes sense too.

Undeadbanana

  • Muffalo
  • *
  • Posts: 15
  • Refugee
    • View Profile
Re: RimWorld core art source
« Reply #205 on: January 26, 2021, 01:44:21 PM »

I think you are refering to this : https://rimworldwiki.com/wiki/Modding_Tutorials/Assets
I dont have these tools. My feeling is that if one person makes the textures available, it allows hundreds of other people to not download the tools and process the files. I think it would be a nice download/hard drive space/processing saving overall.
I imagine you dont want your assets to be directly available without any effort to provide and it makes sense too.

UnityEx is free. There's another called uTinyRip(?) and it works pretty fast.
« Last Edit: January 26, 2021, 02:16:00 PM by Undeadbanana »
Logged

llunak

  • Muffalo
  • *
  • Posts: 13
  • Refugee
    • View Profile
Re: RimWorld core art source
« Reply #206 on: July 28, 2021, 02:40:14 AM »

Will Ideology art be made available too?

And how does one extract the assets from Ideology? It seems to be some newer format, and I couldn't extract them with any of the recommended tools.
Logged

Tynan

  • Developer
  • Administrator
  • Transcendent
  • *****
  • Posts: 12474
    • View Profile
    • Tynan's Blog
Re: RimWorld core art source
« Reply #207 on: July 28, 2021, 03:34:14 PM »

Yes it will, though no date on that yet.
Logged
Tynan Sylvester - @TynanSylvester - Tynan's Blog
Pages: 1 ... 12 13 [14]