Important Pluton for Experimental Branch

Status
Not open for further replies.

DreTaX

Probably knows the answer...
Administrator
Jun 29, 2014
4,093
4,784
113
At your house.
github.com
lool at this last page, this is why i got balu to add JS support back in. took me like 2 hours to write a tpto/tpa plugin in python, vs 5-10 minutes in JS. you know JS is in there for you to use jakee.

also hows the Player.Teleport method going? last time i tested it, it was fine
Its 5 mins for me in Py [emoji41]

Sent from my Samsung Galaxy S4
 

Jakkee

Retired Staff
Retired Staff
Plugin Developer
Jul 28, 2014
1,465
932
113
Australia
lool at this last page, this is why i got balu to add JS support back in. took me like 2 hours to write a tpto/tpa plugin in python, vs 5-10 minutes in JS. you know JS is in there for you to use jakee.

also hows the Player.Teleport method going? last time i tested it, it was fine
Yeah I got tp plugin working in about the same time as you.
Come Back later, Updating the code
And yeah i saw there was Jint support added, Just thought i'd try out Python.
 
Last edited:

balu92

Retired Staff
Retired Staff
Trusted Member
Jul 11, 2014
338
75
28
34
safer code:
Python:
                name = command.quotedArgs[0]
                player = Server.FindPlayer(name)
                if player is not None:
                    StringName = player.Name
 

Dunne

New Member
Member
Oct 6, 2014
13
0
1
36
How i upload a plugin on my server , do i need to make separate folder in plugin folders? i need to compile the Py file or how to do it?
 

Skully

Plugin Developer
Plugin Developer
Sep 8, 2014
91
7
8
What I need to use to make PY coding easyer?
Can PyCharm help me code and tell some errors?
 

balu92

Retired Staff
Retired Staff
Trusted Member
Jul 11, 2014
338
75
28
34
What I need to use to make PY coding easyer?
Can PyCharm help me code and tell some errors?
it's not perfect, but should help you in some case, yeah
http://fougerite.com/threads/setup-pycharm-for-python-plugins.198/

How i upload a plugin on my server , do i need to make separate folder in plugin folders? i need to compile the Py file or how to do it?
each plugin goes in it's own folder
/Plugins/py1/py1.py
/Plugins/HelloWorld/HelloWorld.py
this will be the same with js plugins when we add them:
/Plugins/js1/js1.js
/Plugins/Foobar/Foobar.js

in python all the hook must go under the same class name that the name of the plugin
Python:
class py1:
    def On_SomethingHappend(self, arg1):
Python:
class HelloWorld:
    def On_PlayerConnected(self, player):
        player.Message("Hello world!")
 

Dunne

New Member
Member
Oct 6, 2014
13
0
1
36
Balu thx for reply it works :) and i have some more questions like can i modify my server message in chat To change Pluton : with another name ? and i dont know why /players command dosnt work....to show online players
 

balu92

Retired Staff
Retired Staff
Trusted Member
Jul 11, 2014
338
75
28
34
Balu thx for reply it works :) and i have some more questions like can i modify my server message in chat To change Pluton : with another name ? and i dont know why /players command dosnt work....to show online players
I'd like if you wouldn't change the broadcast name from pluton just yet. Let ppl know about this mod, shall we? :) as for the /players, it should only show the number of players, not much...
 

Dunne

New Member
Member
Oct 6, 2014
13
0
1
36
I'd like if you wouldn't change the broadcast name from pluton just yet. Let ppl know about this mod, shall we? :) as for the /players, it should only show the number of players, not much...
Well i wont change the Broad cast name but the rest?
 

Dunne

New Member
Member
Oct 6, 2014
13
0
1
36
Well i thank you but i dont know how to implement it still need alot to learn ! And one more question every time i use the command quit and reopen server its getting me killed what i need to do so when relog to be in sleep mode , wake up mode
 
Last edited:

DreTaX

Probably knows the answer...
Administrator
Jun 29, 2014
4,093
4,784
113
At your house.
github.com
it's not perfect, but should help you in some case, yeah
http://fougerite.com/threads/setup-pycharm-for-python-plugins.198/


each plugin goes in it's own folder
/Plugins/py1/py1.py
/Plugins/HelloWorld/HelloWorld.py
this will be the same with js plugins when we add them:
/Plugins/js1/js1.js
/Plugins/Foobar/Foobar.js

in python all the hook must go under the same class name that the name of the plugin
Python:
class py1:
    def On_SomethingHappend(self, arg1):
Python:
class HelloWorld:
    def On_PlayerConnected(self, player):
        player.Message("Hello world!")
I will create a pluton setup too.

Sent from my Samsung Galaxy S4
 

michaelrevou

New Member
Member
Oct 5, 2014
18
1
1
I dont think the binaries would be hard to release and reupdate after update, and since here are developers pleace make god mode for admins
 
  • Funny
Reactions: Ionstorm

Ionstorm

New Member
Member
Oct 6, 2014
24
5
3
43
Erm, just a slight issue since using Pluton.

If the server restarts, all buildings etc are lost, how come?
 

DreTaX

Probably knows the answer...
Administrator
Jun 29, 2014
4,093
4,784
113
At your house.
github.com
Erm, just a slight issue since using Pluton.

If the server restarts, all buildings etc are lost, how come?
Puhhh. Reminds me about Rust Legacy O_O

I dont think the binaries would be hard to release and reupdate after update, and since here are developers pleace make god mode for admins
I'm sorry, but we can't release something that is unstable.
 

Dunne

New Member
Member
Oct 6, 2014
13
0
1
36
i wonder how can i activate airdrop on some servers its active...any one know becouse i wanna have it on my server
 
Status
Not open for further replies.