Scripts / Caption script to display text at the bottom of the screen.

Author
Message
wenga
16
Years of Service
User Offline
Joined: 12th Jan 2008
Location: United Kingdom
Posted: 9th Jul 2014 13:02 Edited at: 9th Jul 2014 14:29
....
tomjscott
User Banned
Posted: 9th Jul 2014 16:39
What is this?

System Specs: OS - Windows 7 Home Premium 64-bit SP1, CPU - AMD Phenom II X4 945, 3.0Ghz, RAM - 8Gb DDR3, GFX Card - 2048MB NVIDIA GeForce GT 640, FPSC-R Version - Beta 1.0071
Jerry Tremble
GameGuru TGC Backer
12
Years of Service
User Offline
Joined: 5th Nov 2012
Location: Sonoran Desert
Posted: 9th Jul 2014 16:54 Edited at: 9th Jul 2014 16:56






Did you mean something like that? That\'s the best I can do with limited info.

MAME Cab PC: i7 4770@3.4Ghz (passmark 9945), 12GB RAM, Win 8.1/64, GeForce GTX645 (passmark 1898); Shiny new laptop: i7 4800MQ@2.7Ghz (passmark 8586), 16GB RAM, Win 8.1/64, GeForce GTX870M (passmark 3598); Old laptop: i5@2.3Ghz, 8GB RAM, Win 7/64, Intel 3000 graphics
PM
wenga
16
Years of Service
User Offline
Joined: 12th Jan 2008
Location: United Kingdom
Posted: 9th Jul 2014 22:17
Er yes as it happens haha!. Thank you for your response even based on my limited info. I realised my error/errors so i tried to remove the post, turns out i have no idea how. Anyways i'm off topic i was trying to create a script to insert a caption which i know as you have shown is do-able my lack of knowledge means i have no idea how to rename the script or make one of my own that wont constantly give me an error telling me it cant call the function as i know because it doesn't exist. So i'm abit stuck, i have a reasonable understanding of what is doing what and why but simply fail out-right when it comes to writing one from scratch.
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 10th Jul 2014 00:54
you must name the file the same as you put after the function call
i.e. if you put
function my_script_main(e)

you would need to call the file
my_script.lua
note the _ is needed in both cases as spaces are not allowed

also if you are planning on having multiple custom scripts you need to also include an function *name*_init(e) & end statement before the function *name*_main(e) call otherwise it will cause a stack error

life's one big game

windows vista ultimate

i5 @3.3ghz, 4gb ram, geforce gtx460, directx 11
wenga
16
Years of Service
User Offline
Joined: 12th Jan 2008
Location: United Kingdom
Posted: 10th Jul 2014 11:21 Edited at: 10th Jul 2014 11:22
Oh i see yeah that does make sense. Thank you very much for your advice. Iv been stuck for a while now trying to work out where i was going wrong. So hopefully now you've pointed me in the right direction.



Wenga.

Login to post a reply

Server time is: 2024-12-22 05:01:36
Your offset time is: 2024-12-22 05:01:36