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.

Author
Message
nruser
18
Years of Service
User Offline
Joined: 22nd Dec 2007
Location: Serbia
Posted: 30th Apr 2011 20:06
i want to make some sort of scripting for my game, and what i had in mind is to incorporate something like mechanism for handling materials at evolved's advanced lighting. But i get confused by what evolved did with his scripting system.

my approach is: these are the function used for scripting



and this is a script file



and the script would be called before main game loop



with this i wanted to make first step in my scripting system by writing a string after '=' in the script file to the log file, but it doesn't work, can someone help me with this?
nruser
18
Years of Service
User Offline
Joined: 22nd Dec 2007
Location: Serbia
Posted: 2nd May 2011 19:30
here is small update i have tried to change GetString funtion to GetToken function from zombies game that i found here on forum. But I don't know how does GetToken funciton works, what i had in mind is that user would specify str_ string from the script and later the game will find that string and show stuff after '=' sign. I am having trouble getting the strings after the '=' sign, can someone help?

Brendy boy
20
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 5th May 2011 13:46
you should try using Lua plugin for scripting, it would be much easier for you, you would't have to worry about parsing text files-plugin does everything for you

Login to post a reply

Server time is: 2026-07-11 19:06:12
Your offset time is: 2026-07-11 19:06:12