Author Topic: Textures Locations  (Read 2382 times)

0 Members and 1 Guest are viewing this topic.

Offline TIMMAY

  • 25
    • http://sco.minos.net
I only recently discovered the all this when i found my old copy of FS2 and after getting the source code, Im wanting to change how the textures are stored..

As we all know atm they are all stored in the '/data/maps' dir but what I would like to change it to is '/data/maps/modelname/' dir. But atm my C is pretty damn shocking, Im mainly learning as I go.. From what i've been able to understand, the textures are called in modelread.cpp around line 1800. But i cant understand that bit of code enough to tinker effectively.

Is there anyone that can help me out here?

Thanks

 

Offline Fry_Day

  • 28
While that would be more organized than the current way, backward-compatability wouldn't be maintained, and I doubt it's as simple as changing a few lines of code to get it working flawlessly (Though I maybe wrong, since I looked at the loading code only once, and then only long enough to get lens-flare loading to work).

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
The problem with that approach is not just backwards compatability but also the fact that many models use the same textures.

If you want to make sure that a model and it's textures remain together package them up in a .vp file. That should be almost as simple as your idea.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline Bobboau

  • Just a MODern kinda guy
    Just MODerately cool
    And MODest too
  • 213
the file system in FS is abominable
Bobboau, bringing you products that work... in theory
learn to use PCS
creator of the ProXimus Procedural Texture and Effect Generator
My latest build of PCS2, get it while it's hot!
PCS 2.0.3


DEUTERONOMY 22:11
Thou shalt not wear a garment of diverse sorts, [as] of woollen and linen together

 

Offline Kazan

  • PCS2 Wizard
  • 212
  • Soul lives in the Mountains
    • http://alliance.sourceforge.net
that would be a massive change in CFileSystem
PCS2 2.0.3 | POF CS2 wiki page | Important PCS2 Threads | PCS2 Mantis

"The Mountains are calling, and I must go" - John Muir

 

Offline redmenace

  • 211
welcome to the babylon project

Exits are to the sides and rear, emergency flamethrowers can be found under the seats. And if you run into a large 5-limbed creature while wandering around in the air ducts, give it your lunch. Hopefully it's just Carl, and he'll leave you be.
Government is the great fiction through which everybody endeavors to live at the expense of everybody else.
              -Frederic Bastiat

 

Offline Flipside

  • əp!sd!l£
  • 212
LOL Where were our manners? Welcome aboard!

It is a good idea, but I think packing them up as a VP file works better and is a lot less hard work for the coders :)

Flipside :D

 

Offline Kazan

  • PCS2 Wizard
  • 212
  • Soul lives in the Mountains
    • http://alliance.sourceforge.net
redmenance: nice typo "welcome to the babylon project"
PCS2 2.0.3 | POF CS2 wiki page | Important PCS2 Threads | PCS2 Mantis

"The Mountains are calling, and I must go" - John Muir

 

Offline Black Wolf

  • Twisted Infinities
  • 212
  • Hey! You! Get off-a my cloud!
    • Visit the TI homepage!
Hey - more Aussies :D You're joinging an elite crew of about... fifteen or so by now.

Welcome aboard! :)
TWISTED INFINITIES · SECTORGAME· FRONTLINES
Rarely Updated P3D.
Burn the heretic who killed F2S! Burn him, burn him!!- GalEmp

 

Offline redmenace

  • 211
Quote
Originally posted by Kazan
redmenance: nice typo "welcome to the babylon project"

hahaha I am such a lazy SOB Kazan I posted this in the Babylon Project forums and just copied the text over with out changing it.

"welcome to the babylon project

Exits are to the sides and rear, emergency flamethrowers can be found under the seats. And if you run into a large 5-limbed creature while wandering around in the air ducts, give it your lunch. Hopefully it's just Carl, and he'll leave you be.

Doh wrong welcome message, if you have not stopped by and registered at HLP you should.
http://dynamic4.gamespy.com/~freesp...p?s=&forumid=50"

a very long week dude. now back to last of the mohicans
Government is the great fiction through which everybody endeavors to live at the expense of everybody else.
              -Frederic Bastiat

  

Offline TIMMAY

  • 25
    • http://sco.minos.net
sorry about the late reply.. damn life :P

Anyways, thanks to everyone that tried to help but I found a way to do accomplish what I wanted.. i had a good look thru POF Constructor Suite and I can change the names of the texture files in there to point to the right files :D

(I tried using Rhino to redirect the textures but that caused problems when saving as a 3ds)