Jump to content

Just a bit of tinkering


  • You cannot reply to this topic

6 replies to this topic

#1 GSIO01

GSIO01

    UberGames Developer

  • UberGames Developer
  • 1,021 posts

Posted 13 May 2010 - 05:06 PM

(10 chars)

Attached Thumbnails

  • lua.jpg


#2 Telex Ferra

Telex Ferra

    Member

  • Members
  • 1,104 posts

Posted 13 May 2010 - 07:31 PM

I'm no tech expert.

Can you explain what you did?

#3 Alex H

Alex H

    Senior Member

  • Members
  • 986 posts

Posted 13 May 2010 - 08:22 PM

Getting EF to use the LUA scripting language... what would this mean? :)

Brex.png

There is no such thing as the perfect person, only those who love perfectly.


#4 GSIO01

GSIO01

    UberGames Developer

  • UberGames Developer
  • 1,021 posts

Posted 14 May 2010 - 07:24 AM

I'm no tech expert.

Can you explain what you did?


Well I simply used shared libraries (dll/so) instead of QVM which opens the possibility to link in additional libraries when compiling. I then added a basic framework (for loading lua files, compiling them, initializing the lua VM, ...) to the gamecode and wrote a lua-library that contains some of the basic gameside functions (eg. G_Print that prints to console on game side and centerprint).

In the picture I added an usable to a map that calls the function HelloWorld when it is used. The lua script is placed in baseEF/scripts/lua/<mapname>/<mapname>.lua .

Getting EF to use the LUA scripting language... what would this mean? :)


Obviously that it is possible and it would be an option to use it as scipting language for RPG-X.

#5 Alex H

Alex H

    Senior Member

  • Members
  • 986 posts

Posted 14 May 2010 - 07:04 PM

But is it a smaller scripting engine? So it'll take less space and therefore stop some of the 'Read Past Server Message' errors?

Brex.png

There is no such thing as the perfect person, only those who love perfectly.


#6 GSIO01

GSIO01

    UberGames Developer

  • UberGames Developer
  • 1,021 posts

Posted 15 May 2010 - 02:41 PM

Well you can save many entities so yes.

#7 Scooter

Scooter

    The Canon Man

  • UberGames Admin
  • 2,545 posts

Posted 18 May 2010 - 01:41 AM

It also allows for things which entities can't handle.



0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users