Credits
I just want credits to appear at the beginning of the map.
If you only want to display a few texts, you will need to edit it so then the game doesn't fade and end once they have finished.
Fracture wrote:
that was exactley the file i was messing around with and i couldnt figure out why it wouldnt display. I checked the threads that you had replied to refering to it and i couldnt seem to make it show up
If that was the file you were messing around with it would've been better if you asked it there, you're more likely to get a reply from the person who uploaded it. I can't look into it now, if I can I'll let you know 
Trigger is set as this; onTrigger/credits/instance:DisplayCredits;Trigger
I removed the fade from the .VMF and i then looked at the.nut file and tried replacing and removing some lines ABOVE the area i was not supposed to touch. I wasn't sure what parts i was supposed to edit, but this is what it looks like
||// ====================================================
// = CUSTOM CREDITS MADE BY CHICKENMOBILE
// = INSTANCE TO USE IS CHICKEN_INSTANCES/CREDITS.VMF.
// = To start the credits -> 'Trigger' @DisplayCredits through the instance
// ====================================================
DBG <- 0 //Turns debug statements on or off
// This holds all the lines for the credits. New lines within each game_text are added using \n
// 'Hold' is how long the text stays on the screen after the text has faded in
// 'Delay' is how long it stays black before the wanted text appears
// 'reversed' will swap the default position of the title with the subtitle
// 'position' manually sets the position of the title. I suggest you don't put 'reversed' and 'position' together
CREDITS <- [
{ title_text = "TITLE", subtitle_text = "Full of Empty", reversed = true, delay = 2, hold = 5 },
{ title_text = "CREATED BY", subtitle_text = "Fracture", delay = 2, hold = 4 },
{ title_text = "SPECIAL THANKS TO", subtitle_text = "www.thinking.withportals.com", delay = 2, hold = 4 },||
Fracture wrote:
yeah i guess that would have been the better idea. i just didnt think an old thread from may of 2011 was going to get noticed. I'm weird like that, but that is besides the point. :pTrigger is set as this; onTrigger/credits/instance:DisplayCredits;Trigger
I removed the fade from the .VMF and i then looked at the.nut file and tried replacing and removing some lines ABOVE the area i was not supposed to touch. I wasn't sure what parts i was supposed to edit, but this is what it looks like
||// ====================================================
// = CUSTOM CREDITS MADE BY CHICKENMOBILE
// = INSTANCE TO USE IS CHICKEN_INSTANCES/CREDITS.VMF.
// = To start the credits -> 'Trigger' @DisplayCredits through the instance
// ====================================================
DBG <- 0 //Turns debug statements on or off// This holds all the lines for the credits. New lines within each game_text are added using \n
// 'Hold' is how long the text stays on the screen after the text has faded in
// 'Delay' is how long it stays black before the wanted text appears
// 'reversed' will swap the default position of the title with the subtitle
// 'position' manually sets the position of the title. I suggest you don't put 'reversed' and 'position' together
CREDITS <- [
{ title_text = "TITLE", subtitle_text = "Full of Empty", reversed = true, delay = 2, hold = 5 },
{ title_text = "CREATED BY", subtitle_text = "Fracture", delay = 2, hold = 4 },
{ title_text = "SPECIAL THANKS TO", subtitle_text = "www.thinking.withportals.com", delay = 2, hold = 4 },||
Looks fine to me. Perhaps you can upload your map (or just the part with the credits) so I can see what's possibly wrong)
Quick question: Are you getting a: "The function NAME() does not exist" error in your console? - and straight after your CREDITS is there a "]" after it? (very important)
EDIT: why did you think my credits was an old post? I made it only a couple of weeks ago.
ALL things seemed to be accounted for and everything has been tested in numeration. I believe this map may very well be finished, that is to say, the first version of it.
Let me know what you think of it. 
Its ok. Looks like it was in fullbright though. Is it?
A few annoyances:
- The turrets in the laser receptacle room cannot be picked up. I jumped on them to make them fall over and deactivate.- Use a ramp for that place with the glass stairs! (rage)- I didn't know you had to collect those balls. Probably just me.
Also when you release the map you will need to include the credit script with it. To make sure that your script doesn't clash with anyone else's who uses the credit script, make sure you change the paths of the script in the instance as well as moving it to the correct folder (I think you learned
).
Okay i think i got it, this good?
either way i got it working like i wanted, but here is a newer version incase you havent seen it on the downloads page
Fracture wrote:
yeah i tried those as well, couldn't figure them out. infact I dont even know why they are in the .vmf
seriously? how hard can it be: https://developer.valvesoftware.com/wiki/Game_text
wait, if that is all I would need, why bother script any credits at all?
Fracture wrote:
luls, I think I had the wrong output in the whole time.wait, if that is all I would need, why bother script any credits at all?
Because this script is intended for full credits. For example at the end of a mod, that's much more then just one line 
Fracture wrote:
luls, I think I had the wrong output in the whole time.wait, if that is all I would need, why bother script any credits at all?
The whole point in credits is to display multiple names at different times. With this, it would make displaying the credits 100000x easier because everything is automatically timed to your script (such as the title and subtitle fading at the same time when the effect is 'scanning').