Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: change cmake gcc flags?
Post: RE: change cmake gcc flags?
|
danny9484 |
Development
|
5 |
6,492 |
04-10-2016, 05:13 AM |
|
|
Thread: change cmake gcc flags?
Post: RE: change cmake gcc flags?
ok march was a bad example. I also meant other experimental flags like -O3 and -ffast-math.
So do I have to add them to that line or is there another way to pass through these flags? |
|
danny9484 |
Development
|
5 |
6,492 |
04-07-2016, 11:35 PM |
|
|
Thread: change cmake gcc flags?
Post: change cmake gcc flags?
hey,
I was wondering if you can compile cuberite with different gcc flags like march=native option ... would like to test if there is any difference in performance. But I have no idea how cmake works... |
|
danny9484 |
Development
|
5 |
6,492 |
04-05-2016, 06:08 PM |
|
|
Thread: get every sign in the world
Post: RE: get every sign in the world
I got it working with freeze and unfreeze but im not sure if it's safe because im calling both in the same function / in 1 tick. maybe if the player has lag he could glitch through? |
|
danny9484 |
Plugin Discussion
|
24 |
19,536 |
03-21-2016, 11:18 PM |
|
|
Thread: get every sign in the world
Post: RE: get every sign in the world
oh didn't knew you can change your name ok I will use UUID instead
yes multiple players can claim the same block you can define friends
Next problem I have, I want to prevent that Players that d... |
|
danny9484 |
Plugin Discussion
|
24 |
19,536 |
03-21-2016, 11:00 PM |
|
|
Thread: get every sign in the world
Post: RE: get every sign in the world
the name variable had actually no use it was just something I forgot to remove after testing
I've updated it a little bit cleanup maybe better understandable now? xD |
|
danny9484 |
Plugin Discussion
|
24 |
19,536 |
03-21-2016, 06:37 PM |
|
|
Thread: get every sign in the world
Post: RE: get every sign in the world
I just tried that prepare and it worked very very well xD
[shcode=lua]
local db = sqlite3.open(cPluginManager:Get():GetCurrentPlugin():GetLocalFolder() .. "/storage.sqlite")
db:exec("BEGIN TRANSA... |
|
danny9484 |
Plugin Discussion
|
24 |
19,536 |
03-19-2016, 12:59 AM |
|
|
Thread: get every sign in the world
Post: RE: get every sign in the world
doesn't look too complicated I will try that thanks :) |
|
danny9484 |
Plugin Discussion
|
24 |
19,536 |
03-18-2016, 10:15 PM |
|
|
Thread: get every sign in the world
Post: RE: get every sign in the world
I think writing only the edges in the database should be enogh but how could I prepare a Database transaction? |
|
danny9484 |
Plugin Discussion
|
24 |
19,536 |
03-18-2016, 09:33 PM |
|
|
Thread: get every sign in the world
Post: RE: get every sign in the world
the idea is not letting people in it it's not really necessary but I will think later about that and maybe add it as a update |
|
danny9484 |
Plugin Discussion
|
24 |
19,536 |
03-18-2016, 07:47 PM |
|
|
Thread: get every sign in the world
Post: RE: get every sign in the world
ahh I remember why I didn't do that I wasn't sure how to load every fence again from the database
but I have a Idea now I could get one coordinate and try +X after that -X after that +Z after that -Z... |
|
danny9484 |
Plugin Discussion
|
24 |
19,536 |
03-18-2016, 02:29 AM |
|
|
Thread: get every sign in the world
Post: RE: get every sign in the world
yeah I think that might be possible I will try it tommorow
I could edit the trace function because I already saved the move direction in it on every fence I check it would be like
if the direction i... |
|
danny9484 |
Plugin Discussion
|
24 |
19,536 |
03-18-2016, 02:16 AM |
|
|
Thread: get every sign in the world
Post: RE: get every sign in the world
Code:
--
-----------
----++++++++++-
-++++--------+-
-+---- -+-
-+- ------+-
S-G- -++++++-
-+- -+------
-+------+-
-++++++++-
----------
--
S is the si... |
|
danny9484 |
Plugin Discussion
|
24 |
19,536 |
03-18-2016, 02:07 AM |
|
|
Thread: get every sign in the world
Post: RE: get every sign in the world
for the chunk problem couldn't I use GenerateChunk() while checking the fences (if i get blocktype = 0 (I think that means air or no chunk)) to force load the chunk? sure it's not the best performance... |
|
danny9484 |
Plugin Discussion
|
24 |
19,536 |
03-16-2016, 01:26 AM |
|
|
Thread: get every sign in the world
Post: RE: get every sign in the world
nevermind via cRoot
I don't know why I didn't came to it |
|
danny9484 |
Plugin Discussion
|
24 |
19,536 |
03-15-2016, 10:40 PM |
|
|
Thread: get every sign in the world
Post: RE: get every sign in the world
now a question I have created a Database now and saved the coordinates of a sign and the name of the world where it's placed
but how can I get a cWorld object from that world name?
I tried World =... |
|
danny9484 |
Plugin Discussion
|
24 |
19,536 |
03-15-2016, 10:37 PM |
|
|
Thread: get every sign in the world
Post: RE: get every sign in the world
ok I will just use a database instead |
|
danny9484 |
Plugin Discussion
|
24 |
19,536 |
03-15-2016, 10:22 PM |
|
|
Thread: get every sign in the world
Post: RE: get every sign in the world
1. I could make sure the chunk is loaded/ load it if not while checking the fence
2. it also protects 1 block around each fence so that shouldn't happen, if 2 friends mess around with it well it coul... |
|
danny9484 |
Plugin Discussion
|
24 |
19,536 |
03-15-2016, 07:53 PM |
|
|
Thread: get every sign in the world
Post: get every sign in the world
Hi again,
Im working on a Protection Plugin that should be used by players not only admins
It works like this, you build an area with a fence and a fence_gate, place a sign in front of the fence_g... |
|
danny9484 |
Plugin Discussion
|
24 |
19,536 |
03-15-2016, 07:28 PM |
|
|
Thread: mmo plugin help wanted
Post: RE: mmo plugin help wanted
I just got your geyser spell working xD |
|
danny9484 |
Plugin Discussion
|
16 |
12,663 |
03-11-2016, 01:01 AM |