Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: Ini Read/Write problem
Post: RE: Ini Read/Write problem
FakeTruth Wrote: (04-12-2011, 06:22 AM)
--
It's because of the special callback, it doesn't set the 'self' variable
--
Wouldn't say its a bug, because LUA doesn't have such thing as self. |
|
Tybor |
Plugin Discussion
|
7 |
5,668 |
04-13-2011, 02:01 AM |
|
|
Thread: Anyone interested in a team effort?
Post: RE: Anyone interested in a team effort?
Revolucas Wrote: (04-02-2011, 06:40 PM)
--
Wondering if capable people are interested in coming together to get certain game mechanics working through lua plug-ins. Frankly, MCServer really isn't at ... |
|
Tybor |
Plugin Requests
|
14 |
17,314 |
04-04-2011, 02:52 AM |
|
|
Thread: MCServer Lua implementation
Post: RE: MCServer Lua implementation
Revolucas Wrote: (03-19-2011, 07:49 PM)
--
Whatever. You acted as if it's impossible to share data between plugins. You've also stated you didn't want to rewrite code in every plugin. My suggestion s... |
|
Tybor |
Plugin Discussion
|
26 |
30,847 |
03-19-2011, 08:15 PM |
|
|
Thread: MCServer Lua implementation
Post: RE: MCServer Lua implementation
Thanks Revolucas for your offered help.
But this whole discussion was not about implementing a single plugin and was not focused on my Economy plugin example.
I started this discussion to get deta... |
|
Tybor |
Plugin Discussion
|
26 |
30,847 |
03-19-2011, 05:48 PM |
|
|
Thread: MCServer Lua implementation
Post: RE: MCServer Lua implementation
Revolucas Wrote: (03-18-2011, 12:46 PM)
--
If you simply want to create an economy sort of plugin and use it in other plugins I suggest using SQlite. Plugin1 can check or alter the balance of a playe... |
|
Tybor |
Plugin Discussion
|
26 |
30,847 |
03-19-2011, 04:13 AM |
|
|
Thread: r174
Post: RE: r174
distroyed123 Wrote: (03-09-2011, 12:06 AM)
--
lets get those plugins going for r174!!
--
Still waiting for some documentation ... |
|
Tybor |
Plugin Requests
|
8 |
11,136 |
03-09-2011, 02:36 AM |
|
|
Thread: MCServer r174
Post: RE: MCServer r174
I don't want to be ungrateful, but what about API documentation for new hooks (OnKilledBy and OnDamage)?
Is plugin data exchange implemented (see https://forum.cuberite.org/showthread.php?tid=42&pid=... |
|
Tybor |
News
|
30 |
37,330 |
03-08-2011, 03:02 AM |
|
|
Thread: MCServer r174
Post: RE: MCServer r174
Authentication is working with my local MCServer r174.
If somebody has problems with it try to disable it in settings.ini:
PHP Code:
--
Authenticate=0
--
FakeTruth Wrote: (03-07-2011, 09:47 PM)
... |
|
Tybor |
News
|
30 |
37,330 |
03-08-2011, 02:48 AM |
|
|
Thread: INI Files
Post: RE: INI Files
Tim Wrote: (03-07-2011, 12:04 AM)
--
Sorry im bumping an old thread but thought it would be silly to make a new one :)
Is there a way to cycle through all the keys in an ini file and output the key ... |
|
Tybor |
Plugin Discussion
|
14 |
17,622 |
03-07-2011, 03:37 AM |
|
|
Thread: Trade Plugin v1
Post: Trade Plugin v1
Release of Trade Plugin v1
Note: MCServer >= r173 is needed!
Features:
universal trade plugin which supports normal selling or transfer of items
introduces coins as currency
trade anytime yo... |
|
Tybor |
Archived Plugins
|
2 |
5,868 |
03-06-2011, 11:15 PM |
|
|
Thread: MCServer Lua implementation
Post: RE: MCServer Lua implementation
Revolucas Wrote: (03-04-2011, 08:44 AM)
--
Just reuse code for each one? If you release three plugins, not everyone is going to use all three. So if you are calling to other functions within those fi... |
|
Tybor |
Plugin Discussion
|
26 |
30,847 |
03-05-2011, 03:11 AM |
|
|
Thread: MCServer Lua implementation
Post: RE: MCServer Lua implementation
Ah, OK.
So some sort of "Good Plugin Programming Practice" should be written? Use global Plugin Table for storing every global which plugin needs. Use local for functions etc.
Perhaps a switch in se... |
|
Tybor |
Plugin Discussion
|
26 |
30,847 |
03-04-2011, 04:51 AM |
|
|
Thread: Downside to TP
Post: RE: Downside to TP
FakeTruth Wrote: (03-03-2011, 06:39 AM)
--
Yeah, that's a bug. It started happening after I added fall damage. If you stand somewhere high, and teleport to a low(er) place by using /tp or /spawn you ... |
|
Tybor |
Plugin Discussion
|
5 |
7,507 |
03-04-2011, 03:18 AM |
|
|
Thread: MCServer Lua implementation
Post: RE: MCServer Lua implementation
FakeTruth Wrote: (03-03-2011, 07:05 AM)
--
So I tested using a single Lua instance/stack and it works, but it's not perfect. For instance values stored in the 'self' table cannot be accessed from any... |
|
Tybor |
Plugin Discussion
|
26 |
30,847 |
03-04-2011, 03:16 AM |
|
|
Thread: Cuboid remake?
Post: RE: Cuboid remake?
Cappibara Wrote: (03-03-2011, 02:33 AM)
--
I am not fantastic at coding so I can't really make what i want :P
BUT i know some of you are pretty darn amazing.
Just wondering if anyone could create a... |
|
Tybor |
Plugin Requests
|
5 |
8,458 |
03-03-2011, 03:05 AM |
|
|
Thread: MCServer Lua implementation
Post: RE: MCServer Lua implementation
codename_B Wrote: (03-02-2011, 07:48 AM)
--
Why not save the monetary values in an ini file like I'm doing? Then you can write one big plugin for area and store (and anything else that costs money)
-... |
|
Tybor |
Plugin Discussion
|
26 |
30,847 |
03-03-2011, 03:01 AM |
|
|
Thread: MCServer Lua implementation
Post: RE: MCServer Lua implementation
FakeTruth Wrote: (03-02-2011, 05:57 AM)
--
Each plugin (read .lua file, each .lua file can have multiple plugins) has its own stack.
I don't know if it's possible to call functions between plugins... |
|
Tybor |
Plugin Discussion
|
26 |
30,847 |
03-02-2011, 07:27 AM |
|
|
Thread: MCServer Lua implementation
Post: MCServer Lua implementation
How is Lua implemented in MCServer?
Does each Plugin has its own Lua Stack?
How to call functions between Plugins?
How to exchange data between Plugins? |
|
Tybor |
Plugin Discussion
|
26 |
30,847 |
03-02-2011, 04:09 AM |
|
|
Thread: Global Function?
Post: RE: Global Function?
Well, just tried to call a Plugin function from another plugin and failed :(
You may include other lua files by require statement see http://lua-users.org/wiki/ModulesTutorial
Perhaps FakeTruth ... |
|
Tybor |
Plugin Discussion
|
5 |
7,945 |
03-02-2011, 03:51 AM |
|
|
Thread: Global Function?
Post: RE: Global Function?
Dys0n Wrote: (03-01-2011, 11:23 AM)
--
Can i make a function that can be called in all plugins eg if i make a function called
Coldsteel:SendData( pName, Message )
How could i call that in all ... |
|
Tybor |
Plugin Discussion
|
5 |
7,945 |
03-02-2011, 02:28 AM |