Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / Scripted Texture Synthesiser........

Author
Message
Hybrid
16
Years of Service
User Offline
Joined: 21st Nov 2007
Location: In the p-block, group 7.
Posted: 9th Aug 2008 01:56
Simple and usefull. I like both.

CoffeeGrunt
16
Years of Service
User Offline
Joined: 5th Oct 2007
Location: England
Posted: 9th Aug 2008 02:24
Thanks, I was thinking of a way to do this, and it hit me, it was so simple as well......

Cyborg ART
17
Years of Service
User Offline
Joined: 14th Jan 2007
Location: Sweden - Sthlm
Posted: 9th Aug 2008 12:42
Maybe kind of n00by question, but where do I put it?


BUMP = Bring Up My Post
CoffeeGrunt
16
Years of Service
User Offline
Joined: 5th Oct 2007
Location: England
Posted: 9th Aug 2008 13:08
In the start script box, the one the entity spawns with.....sorry, forgot to mention that.....

Hybrid
16
Years of Service
User Offline
Joined: 21st Nov 2007
Location: In the p-block, group 7.
Posted: 9th Aug 2008 23:02
Wouldn't this lagg out your game if you did it for every entity?

Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 9th Aug 2008 23:41
Why would it lag out your game? It's no more complicated than any other appear script, in fact, it's LESS complicated than most of them.

Good work, CG, but have you tested this? I was sure that character entities had issues with alternating textures.


The one and only,


Whosoever says, "Don't sweat the small stuff," is obviously not a programmer.
Hybrid
16
Years of Service
User Offline
Joined: 21st Nov 2007
Location: In the p-block, group 7.
Posted: 10th Aug 2008 00:51
I just thought that loading all of those textures, not the script would pose issues. Mabey I am wrong.

CoffeeGrunt
16
Years of Service
User Offline
Joined: 5th Oct 2007
Location: England
Posted: 10th Aug 2008 03:06 Edited at: 10th Aug 2008 10:50
Hmm, that could possibly make load times bad, but probably not Frame rate.......

I'm gonna test this out........

-=EDIT=-

Nope. doesn't work on characters, and since that was the intended purpose of this script, it feels kinda useless now......

Do you know why the Alttexture doesn't work on characters Ply?

Seth Black
FPSC Reloaded TGC Backer
19
Years of Service
User Offline
Joined: 22nd Feb 2005
Location: Pittsburgh, PA
Posted: 10th Aug 2008 17:05
...most likely hardcoded, coffeegrunt.


CoffeeGrunt
16
Years of Service
User Offline
Joined: 5th Oct 2007
Location: England
Posted: 10th Aug 2008 17:13
Noooo....!

Well, I guess this script's useless now.....

Unless you want synthesised barrels or something?

Airslide
19
Years of Service
User Offline
Joined: 18th Oct 2004
Location: California
Posted: 10th Aug 2008 17:30
Maybe migration will give us the texture system used in X10 - I have no idea how it was setup exactly and it seems limited to a fixed number of textures, but cool none-the-less.

Seth Black
FPSC Reloaded TGC Backer
19
Years of Service
User Offline
Joined: 22nd Feb 2005
Location: Pittsburgh, PA
Posted: 10th Aug 2008 17:51
Quote: "...Unless you want synthesised barrels or something"
?

...heck yes.

We can always use more barrels!


CoffeeGrunt
16
Years of Service
User Offline
Joined: 5th Oct 2007
Location: England
Posted: 10th Aug 2008 17:56
......

Lol, well go ahead and use it...I'm gonna test and see if it actually works on those......

Hybrid
16
Years of Service
User Offline
Joined: 21st Nov 2007
Location: In the p-block, group 7.
Posted: 10th Aug 2008 20:06
Yes, even just the barrel textures would be usefull.

CoffeeGrunt
16
Years of Service
User Offline
Joined: 5th Oct 2007
Location: England
Posted: 10th Aug 2008 20:13
Eh..heheheh....about that.....

It doesn't work either. Which leaves me stumped since this script is so simplistic that it should work......

Any non-stock media simply goes pure-white. Whereas stock just sits and does nothing. It must be the ALTTEXTURE command because I've set it all up as it should be.......

Wait! The guide has found the answer! Thank you Nickydude! ALTTEXTURE is a Boolean command, so it needs a =1 on the end of it....give me a mo.....

CoffeeGrunt
16
Years of Service
User Offline
Joined: 5th Oct 2007
Location: England
Posted: 10th Aug 2008 22:10
Ok, I recommend editing the RANDOM=XX value to suit your needs......

As tested so far it works on most stuff, but not MP3 so much, (well, it toggles between white and brown), here's a few screens:

The editor view, all entities are set up as instructed, now let's test the game:

Attachments

Login to view attachments
CoffeeGrunt
16
Years of Service
User Offline
Joined: 5th Oct 2007
Location: England
Posted: 10th Aug 2008 22:12
The first test game, look at how only one barrel's changed:

Attachments

Login to view attachments
CoffeeGrunt
16
Years of Service
User Offline
Joined: 5th Oct 2007
Location: England
Posted: 10th Aug 2008 22:13
The second, if you look behind the chair one of the barrels is changed, and there's more blue canisters:

Attachments

Login to view attachments
CoffeeGrunt
16
Years of Service
User Offline
Joined: 5th Oct 2007
Location: England
Posted: 10th Aug 2008 22:14
3rd time, less blue canisters, more yellow barrels, weird coincidence......

I'll test this on Aiko next, but I'm not too optimistic over it.....

CoffeeGrunt
16
Years of Service
User Offline
Joined: 5th Oct 2007
Location: England
Posted: 10th Aug 2008 22:36
Ah....It crashes the engine....

Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 11th Aug 2008 00:05
Yes, characters do not take kindly to alternate textures in FPSC X9.


I could take a few minutes to look into the source and see if there are any bits of code that scream at me saying, "I DID IT!!! MWAHAHAHAHA!!!"


The one and only,


Whosoever says, "Don't sweat the small stuff," is obviously not a programmer.
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 11th Aug 2008 00:08
Back...

Nothing to peculiar about the engine and how it accomplishes this... however, it does refresh textures used for any shaders that the object may be attempting to use as well as the shader effect itself.

Perhaps that could be the issue here?


The one and only,


Whosoever says, "Don't sweat the small stuff," is obviously not a programmer.
CoffeeGrunt
16
Years of Service
User Offline
Joined: 5th Oct 2007
Location: England
Posted: 11th Aug 2008 00:30
Meh, I dunno, oh well, at least we can instance scenery textures, I guess that's something.....

Hybrid
16
Years of Service
User Offline
Joined: 21st Nov 2007
Location: In the p-block, group 7.
Posted: 11th Aug 2008 01:47
You could even make some places out of dynamic enteties, so that the entire room would change textures.

CoffeeGrunt
16
Years of Service
User Offline
Joined: 5th Oct 2007
Location: England
Posted: 11th Aug 2008 02:14
Yeh, but that would kill framerate with all that processing.......

xyzz1233
16
Years of Service
User Offline
Joined: 18th Nov 2007
Location:
Posted: 22nd Aug 2008 08:22
Sorry for the bump, but... Where's the first post?

CoffeeGrunt
16
Years of Service
User Offline
Joined: 5th Oct 2007
Location: England
Posted: 22nd Aug 2008 10:57
What the.........

I dunno.....

I'll upload the script here:



Login to post a reply

Server time is: 2024-03-29 11:04:45
Your offset time is: 2024-03-29 11:04:45