-
wtm joined the channel
-
SphinxC0re_ has quit
-
wtm has quit
-
wtm_iphone joined the channel
-
wtm_iphone has quit
-
segfalt joined the channel
-
segfalt has quit
-
wtm_iphone joined the channel
-
wtm_iphone has quit
-
ajusa joined the channel
-
ajusa
Hey, how do I stop the weird unicode when putting things like apostrophes in signs?
-
ajusa has quit
-
wtm_iphone joined the channel
-
wtm_iphone has quit
-
Xe
I seem to have gotten in a state where all animals are unkillable
-
is there any information I should collect to report a bug?
-
wtm_iphone joined the channel
-
JamesTait joined the channel
-
JamesTait
Good morning all; happy Friday, and happy Chocolate Pudding Day! 😃
-
tycho_ joined the channel
-
jan64 joined the channel
-
SphinxC0re joined the channel
-
SphinxC0re
tycho_
-
tycho_
Yes?
-
SphinxC0re
regarding #2293
-
Does the server already convert the worlds?
-
tycho_
It should do.
-
Whether it does is another matter.
-
SphinxC0re
Well why are there so many people out there which have problems with converting wolrds
-
tycho_
Because its broken.
-
SphinxC0re
s/wolrds/worlds
-
Okay
-
So should I better renam eit to "Fix world conversion on startup" ?
-
tycho_
Yes.
-
SphinxC0re
done
-
tycho_
Although I think its on loading the chunks, not all done on startup.
-
SphinxC0re
Where is the code for this?
-
tycho_
Its mixed up in WSSAnvil. The code should be able to handle loading Minecraft worlds.
-
SphinxC0re
But what I mean is converting them so adding a world.ini and such
-
tycho_
Ah, World.ini is a design issue in the server as it stands.
-
It needs fixing, but that involves some changes to the way the world settings are handled.
-
SphinxC0re
Can't we write world settings in the NBT data?
-
tycho_
At the moment the world storage is treated as a chunk database, so the information isn't returned.
-
We could do that, but the cWorldStorage interface wasn't written to allow for that.
-
jan64 has quit
-
And because of the abstraction, its a significant amount of work to add support, hence nobodies done it.
-
jan64 joined the channel
-
jan64 has quit
-
SphinxC0re has quit
-
Seadragon91 joined the channel
-
Seadragon91
Hey
-
ajusa joined the channel
-
hey
-
ajusa
Hey
-
Is there anyway to convert the item id to a string?
-
Eg, 0 to "Air"
-
Seadragon91
Did you test ItemToString?
-
ajusa
Where is that?
-
Seadragon91
-
ajusa
Thanks! I am writing a SignShop plugin
-
Also, I *may* have found a possible api bug
-
Get signlines under cworld doesnt seem to return a boolean...
-
Seadragon91
Well it works fine for me
-
Just tested it, did you registered the hook?
-
ops sorry
-
forget that
-
IsValid, Line1, Line2, Line3, Line4 = Player:GetWorld():GetSignLines(BlockX, BlockY, BlockZ)
-
Are you using the hook HOOK_PLAYER_RIGHT_CLICK?
-
ajusa
Sorry, I was afk
-
Yes I am using that hook
-
Lines all show up
-
When I log IsValid tho, it just gives me a blank line
-
Not true or false
-
Seadragon91
Well I get true / false
-
ajusa
Lemme push my code so you can see it...
-
-
main.lua, line 17
-
Seadragon91
The boolean should be in the variable here, is it nil?
-
ajusa
When it is true, it logs out a blank
-
When it is nil, the console throws a fit
-
Seadragon91
the variable here should not be nil
-
ajusa
Idk whats happening
-
Seadragon91
Are you using latest version of cuberite / mc-server?
-
I my variable is false thenn I have nil in the other variables. Is it true then i get the line content that can be blank if no content on line.
-
ajusa
Latest version
-
Seadragon91
true124
-
ajusa
When I use it in an if statement, it just worked
-
Seadragon91
false nilnilnilni
-
Thats the expected behavior
-
ajusa
Screw it. I think it is my pi being glitchy or something, cause it works fine in an if statement. Thanks for your help!
-
Seadragon91
Pi 1 or 2?
-
xD
-
ajusa
Pi 1
-
Seadragon91
Have a PI 1 too and my skyblock world runs very good on it.
-
I rework my plugin for adding other challenges types
-
ajusa
Yes, same here
-
Also, cPluginManager.CallPlugin
-
Does it take a string for the first arg?
-
It says cPluginManager expected
-
Seadragon91
You have cPluginManager:CallPlugin
-
cPluginManager.CallPlugin would be incorrect
-
ajusa
But its static
-
Seadragon91
Does it work with : ?
-
ajusa
I haven't tried that... Oops
-
Seadragon91
tycho_ for what is (STATIC)?
-
tycho_
It might be missdocumented.
-
Seadragon91
Think so, too. In lua doesn't exists static functions
-
tycho_
Yep, missdocumented.
-
And static functions sort of exist in lua.
-
They are functions that you call directly on the metatable, rather than the object.
-
So static functions are methods on the metatable, when the metatable is its own metatable.
-
Seadragon91
Yes
-
ajusa
I just exploded
-
Seadragon91
creeper?
-
ajusa
Metatable is its own metatable
-
That statement broke me
-
Seadragon91
Inheritance in lua is that simple. Should have tried it earlier
-
ajusa
Colon no work :(
-
Seadragon91
hm...
-
ajusa
Code is in the github repo above
-
tycho_ has quit
-
Argument #1 is 'cPluginManager'; 'cPluginManager expected.
-
Is the error
-
Seadragon91
Oh...
-
Could you directly try: cPluginManager:CallPlugin(...)
-
No cRoot before it
-
ajusa
Okay
-
Same error :(
-
Seadragon91
cPluginManager:CallPlugin("Coiny", "removeMoneyByName", Player:GetName(), tonumber(buying))
-
ajusa
I see
-
It kinda works now!
-
Coiny is failing tho...
-
SphinxC0re joined the channel
-
Its giving me assertion failed
-
Hey spinxc0re
-
SphinxC0re
hey ajusa
-
Seadragon91
Hey
-
SphinxC0re
hey Seadragon91
-
Seadragon91
Looking at coiny it wants 5 params for the function
-
The can be empty I think, can you try using ""
-
ajusa
It works now :)
-
Thanks SeaDragon91
-
Seadragon91
Okay no all params has to be passed, only 2 are needed
-
not*
-
Still to many crashes in the server...
-
segfalt joined the channel
-
Hey
-
ajusa
Hey
-
I am getting more error, which I dont understand :(
-
Look at my git code for selling items. I did everything the same way. But I still get errors for the same code