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 / More buttons to Main Menu

Author
Message
the ultimate gamer
18
Years of Service
User Offline
Joined: 30th Jul 2006
Location:
Posted: 10th Aug 2007 19:59 Edited at: 10th Aug 2007 20:02
Currently, The main Menu only has 3 buttons including New game, Load game, and Quit. Each of them has a button type that corresponds with a certian action. Here is the default titlepage.fpi.



And here is the button and its matching action



So I was thinking, Could we add another button, with something like hudtype=3, and have it play a video, or display another HUD such as credits or something along those lines?

hi
Inspire
17
Years of Service
User Offline
Joined: 23rd Dec 2006
Location: Rochester, NY
Posted: 10th Aug 2007 23:26 Edited at: 10th Aug 2007 23:28
Yes you can, as far as I know. As long as the hudtypes aren't hard coded into the engine.

EDIT: I just took a look at the list of scripting commands, and it seems that they are hard-coded into the engine, depending if you are ingame or at the title page.

the ultimate gamer
18
Years of Service
User Offline
Joined: 30th Jul 2006
Location:
Posted: 11th Aug 2007 03:39
Take a look at the titlepage.fpi though. Look at the end of this line.
:state=0:hudreset,hudx=50,hudy=45,hudimage=languagebankenglishgamecorebackdropsbasicnewgame.tga,****hudtype=1****,hudmake=button
So i'm pretty sure it's possible to add more functioning buttons

I'd like to hear if anyone gets this working. I would attempt to get it to work, but i have alot to do for school.

hi
Inspire
17
Years of Service
User Offline
Joined: 23rd Dec 2006
Location: Rochester, NY
Posted: 11th Aug 2007 04:57
Well, I am messing around with stuff like that. And I know that it says hudtype, but what I meant is that that command only specifies what type of preset hud types it is, 1 being new game, 5 being exit game, etc. In game I think it's 1 as lives, 2 as health, 3 as weapon, but I might be wrong. This information is based off of the list of FPI scripts on fpsfree.

jeffhuys
18
Years of Service
User Offline
Joined: 24th May 2006
Location: No cheesy line here.
Posted: 11th Aug 2007 12:08
With this you could make complex animations using timers and loads of images...

Legend of The Beast WIP...
You're the 'th to view this signature!
Inspire
17
Years of Service
User Offline
Joined: 23rd Dec 2006
Location: Rochester, NY
Posted: 12th Aug 2007 00:19
What do you mean?

pigs can fly
18
Years of Service
User Offline
Joined: 20th Aug 2006
Location: Luxembourg
Posted: 12th Aug 2007 14:04
i think he means:
show image, timerstart
timergreater: change image, timerstart
timergreater: and so on...

PCF Killer&Slaughter Machines Pack coming out soon!
AMD Sempron 2,0Ghz - Windows XP Home - ATI All-in-Wonder X800XT 256mb - 1024mb RAM - using Photoshop and Milkshape
pigs_can_fly.hot.lu/pcf
Inspire
17
Years of Service
User Offline
Joined: 23rd Dec 2006
Location: Rochester, NY
Posted: 12th Aug 2007 15:27
Hm...I don't really see the point in that.

the ultimate gamer
18
Years of Service
User Offline
Joined: 30th Jul 2006
Location:
Posted: 12th Aug 2007 19:53
YES! I have gotten one of the buttons to do something different. It was very simple.

I wanted on of the buttons to play a movie so, just as a test, i changed the



to



and if i clicked on the load game button it would play the video.

Remember that this was just a test and if you really want to use this in game you should add another button with a hudtype other than 1, 2, or 5 and



to the end of the titlepage.fpi

hi
Johny English
18
Years of Service
User Offline
Joined: 16th Jul 2006
Location: Czech Republic
Posted: 13th Aug 2007 16:09
And what about image like credits?

SIXOFT - This is not just a game, this is a SIXOFT game.
Storm 6000
20
Years of Service
User Offline
Joined: 10th Oct 2004
Location:
Posted: 13th Aug 2007 17:26
yep that can all be done, I made some buttons in the global menu (in game) to turn the music on and off but you could next song and all sorts if you wanted, I actully can't believe people havent herd of doing this before

Thanks
Adam
Goodman84
17
Years of Service
User Offline
Joined: 23rd May 2007
Location:
Posted: 14th Aug 2007 02:42
Didn't work for me maybe a video Tut would help? lol

hey
Inspire
17
Years of Service
User Offline
Joined: 23rd Dec 2006
Location: Rochester, NY
Posted: 14th Aug 2007 03:15
Quote: "I actully can't believe people havent herd of doing this before"


I have.

Squelchy Tom
18
Years of Service
User Offline
Joined: 25th Aug 2006
Location:
Posted: 28th Aug 2007 14:52
I would say it would be easier to make a title page using dark basic, and have each button load a different EXE. I had a go at this and made 3 test levels, one with 1 enemy (easy) 1 with 2 enemies (medium) and one with 3 enemies (Hard) When you clicked easy, the titlepage loaded my first EXE. when you clicked Medium it loaded the second Etc... The only downside is the filesize of putting 3 games into one package. But i suppose the buttons could be used for something else like an options menu, but i dont know how you would put stuff in there :/
Inspire
17
Years of Service
User Offline
Joined: 23rd Dec 2006
Location: Rochester, NY
Posted: 28th Aug 2007 23:54
Quote: "... The only downside is the filesize of putting 3 games into one package."


There's a way to get around the file size with all of the media in one big folder, using the setup.ini.

Cheese Cake
17
Years of Service
User Offline
Joined: 11th Dec 2006
Location: At the bakery
Posted: 29th Aug 2007 03:32
Hmmmm wait...

If it is possible to stop the music, and turn it back on...

Then isnt it maybe possible for doing this with
changing texture sizes?
Or resolutions?


Sorry but i am not the script guy so dont have a clue.
Inspire
17
Years of Service
User Offline
Joined: 23rd Dec 2006
Location: Rochester, NY
Posted: 29th Aug 2007 18:12
I don't know if dividetexturesize is a command, because I have only seen in on xplosys's site.

Login to post a reply

Server time is: 2024-11-23 20:42:36
Your offset time is: 2024-11-23 20:42:36