This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: Make the Moon bigger  (Read 1787 times)

TheMetalCarrots

  • Registred Member
  • Loreweaver
  • *****
  • Posts: 113
    • View Profile
Make the Moon bigger
« on: October 10, 2015, 10:04:05 pm »
Apologies if this question has been asked previously, but I was wondering if there was any way to resize the moon that appears on the default night sky - I assume, if it is at all possible, it requires the editing of textures/DBC files, but that's merely speculation, so I thought I'd ask here before I plunged blindly into resizing the moon.

Thanks in advance,
Me.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Alastor

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 1105
    • View Profile
Re: Make the Moon bigger
« Reply #1 on: October 11, 2015, 12:18:50 pm »
I think its geoset with plane structure in M2 of sky so you will have to extroduse it
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
No matter how fast light travels it finds the darkness has always got there first and is waiting for it
Star Citizen Referral Code : STAR-XNFS-HVL9

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: Make the Moon bigger
« Reply #2 on: October 11, 2015, 06:35:46 pm »
As far as I remember that had been part of the day night cycle stuff and is hard coded. You can try reverse engineering stuff around DNPlanet, and try to find a size field there. If there is, you would have to patch the binary to override the value.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

TheMetalCarrots

  • Registred Member
  • Loreweaver
  • *****
  • Posts: 113
    • View Profile
Re: Make the Moon bigger
« Reply #3 on: October 11, 2015, 11:42:57 pm »
Aight, I'll try these suggestions and report back. Thanks!
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: Make the Moon bigger
« Reply #4 on: October 12, 2015, 12:11:55 am »
It is in fact hardcoded:

Code: [Select]
void DayNight::CDayNightObjectInt::LoadMap (int map)
{
  if (info.g_initialized)
  {
    UnloadMap();
  }
  info.Initialize (map, s_useNewFog);
  lightRecs.LightLoad (map);
  assert (g_areaLightOverrides.Count()==0);
  info.g_initialized = true;
 
  sky.Initialize();
  clouds.Initialize();
  sunGlare.Initialize ("Textures\sunGlare.blp", &sun);
  moonGlare.Initialize ("Textures\moonGlare.blp", &moon);
  sun.Initialize ("Textures\sunCenter.blp", 1.0, 1.0);
  moon.Initialize ("Textures\moon.blp", 1.75, 1.0);
  moon2.Initialize ("Textures\moon02.blp", 1.0, 1.7);
  stars.Initialize();
}

You would want to change those two floats in DayNight::DNPlanet::Initialize, I guess. Not sure which one is which.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Skarn

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 807
    • View Profile
    • http://skarn-project.net
Re: Make the Moon bigger
« Reply #5 on: October 12, 2015, 11:58:08 am »
Quote from: "schlumpf"
It is in fact hardcoded:

Code: [Select]
void DayNight::CDayNightObjectInt::LoadMap (int map)
{
  if (info.g_initialized)
  {
    UnloadMap();
  }
  info->Initialize (map, s_useNewFog);
  lightRecs->LightLoad (map);
  assert (g_areaLightOverrides.Count()==0);
  info.g_initialized = true;
 
  sky->Initialize();
  clouds->Initialize();
  sunGlare->Initialize ("Textures\sunGlare.blp", &sun);
  moonGlare->Initialize ("Textures\moonGlare.blp", &moon);
  sun->Initialize ("Textures\sunCenter.blp", 1.0, 1.0);
  moon->Initialize ("Textures\moon.blp", 1.75, 1.0);
  moon2->Initialize ("Textures\moon02.blp", 1.0, 1.7);
  stars->Initialize();
}

You would want to change those two floats in DayNight::DNPlanet::Initialize, I guess. Not sure which one is which.

I wonder how many such code snippets have you got on your computer?  :o You have the entire client reversed or just some parts of it?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: Make the Moon bigger
« Reply #6 on: October 12, 2015, 03:50:45 pm »
Quote from: "Skarn"
I wonder how many such code snippets have you got on your computer?  :o You have the entire client reversed or just some parts of it?
I usually don't save them after posting, so the amount of snippets I still have is quite low.

Also, I just realized that those are all non-pointers but plain members.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

kojak488

  • Registred Member
  • Creator of Worlds
  • *****
  • Posts: 351
    • View Profile
Re: Make the Moon bigger
« Reply #7 on: October 12, 2015, 07:57:22 pm »
Just edit the skybox and make that mesh larger.  It's no different than modifying any other .m2 with animations.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: Make the Moon bigger
« Reply #8 on: October 12, 2015, 08:28:25 pm »
Quote from: "kojak488"
Just edit the skybox and make that mesh larger.  It's no different than modifying any other .m2 with animations.
The moon is _not_ part of any M2 for the normal sky.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

kojak488

  • Registred Member
  • Creator of Worlds
  • *****
  • Posts: 351
    • View Profile
Re: Make the Moon bigger
« Reply #9 on: October 18, 2015, 10:24:31 pm »
Quote from: "schlumpf"
Quote from: "kojak488"
Just edit the skybox and make that mesh larger.  It's no different than modifying any other .m2 with animations.
The moon is _not_ part of any M2 for the normal sky.

I'm not sure what you're getting at.  You can edit the meshes in a skybox and make a moon bigger that way.  When I edited a skybox's day/night cycle (as a hackfix, obviously), I played around with the size of the moon in that skybox because it's merely a mesh in the m2 file.  I posted a video of the skybox somewhere in my post history if it's worth's time to look in to.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: Make the Moon bigger
« Reply #10 on: October 18, 2015, 11:07:56 pm »
Quote
The moon is _not_ part of any M2 for the normal sky.

Yes, if you have a skybox, you can do that. You could also replace the moon with a duck then. The default moon is hardcoded though.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »