My fork - ownership of blocks, clans, teleports

For people working on the C++ code.
placki
Member
Posts: 19
Joined: Sun Oct 23, 2011 23:21

by placki » Post

In file included from MT/j004-g060/jachoo-minetest-jachoo-060888c-CLI/src/serverobject.h:25,
from MT/j004-g060/jachoo-minetest-jachoo-060888c-CLI/src/content_sao.h:23,
from MT/j004-g060/jachoo-minetest-jachoo-060888c-CLI/src/content_sao.cpp:20:
MT/j004-g060/jachoo-minetest-jachoo-060888c-CLI/src/utility.h:910: error: 'stonum_ex' declared as an 'inline' variable
MT/j004-g060/jachoo-minetest-jachoo-060888c-CLI/src/utility.h:910: error: template declaration of 'T stonum_ex'
MT/j004-g060/jachoo-minetest-jachoo-060888c-CLI/src/utility.h:910: error: expected primary-expression before 'const'
MT/j004-g060/jachoo-minetest-jachoo-060888c-CLI/src/utility.h:921: error: 'stof_ex' declared as an 'inline' variable
MT/j004-g060/jachoo-minetest-jachoo-060888c-CLI/src/utility.h:921: error: template declaration of 'float stof_ex'
MT/j004-g060/jachoo-minetest-jachoo-060888c-CLI/src/utility.h:921: error: expected primary-expression before 'const'
MT/j004-g060/jachoo-minetest-jachoo-060888c-CLI/src/utility.h:924: error: 'stod_ex' declared as an 'inline' variable
MT/j004-g060/jachoo-minetest-jachoo-060888c-CLI/src/utility.h:924: error: template declaration of 'double stod_ex'
MT/j004-g060/jachoo-minetest-jachoo-060888c-CLI/src/utility.h:924: error: expected primary-expression before 'const'
MT/j004-g060/jachoo-minetest-jachoo-060888c-CLI/src/utility.h:927: error: 'stoi_ex' declared as an 'inline' variable
MT/j004-g060/jachoo-minetest-jachoo-060888c-CLI/src/utility.h:927: error: template declaration of 'double stoi_ex'
MT/j004-g060/jachoo-minetest-jachoo-060888c-CLI/src/utility.h:927: error: expected primary-expression before 'const'
cc1plus: warning: unrecognized command line option "-Wno-unused-but-set-variable"
make[2]: *** [src/CMakeFiles/minetest.dir/content_sao.cpp.o] Error 1
make[1]: *** [src/CMakeFiles/minetest.dir/all] Error 2
make: *** [all] Error 2

User avatar
cisoun
Member
Posts: 232
Joined: Tue Apr 19, 2011 18:56
GitHub: cisoun
IRC: cisoun
In-game: cisoun
Location: Switzerland
Contact:

by cisoun » Post

Happens to me too.
Not here for a while due to some troubles between my graphic card and Minetest.
Cisoun's Texture Pack | The Conifers Mod (deprecated) | Faenza icons for Minetest |
Website

User avatar
Menche
Member
Posts: 1001
Joined: Sat Jul 02, 2011 00:43
IRC: Menchers
In-game: Menche
Location: An island in a lava lake.

by Menche » Post

placki wrote:In file included from MT/j004-g060/jachoo-minetest-jachoo-060888c-CLI/src/serverobject.h:25,
from MT/j004-g060/jachoo-minetest-jachoo-060888c-CLI/src/content_sao.h:23,
from MT/j004-g060/jachoo-minetest-jachoo-060888c-CLI/src/content_sao.cpp:20:
MT/j004-g060/jachoo-minetest-jachoo-060888c-CLI/src/utility.h:910: error: 'stonum_ex' declared as an 'inline' variable
MT/j004-g060/jachoo-minetest-jachoo-060888c-CLI/src/utility.h:910: error: template declaration of 'T stonum_ex'
MT/j004-g060/jachoo-minetest-jachoo-060888c-CLI/src/utility.h:910: error: expected primary-expression before 'const'
MT/j004-g060/jachoo-minetest-jachoo-060888c-CLI/src/utility.h:921: error: 'stof_ex' declared as an 'inline' variable
MT/j004-g060/jachoo-minetest-jachoo-060888c-CLI/src/utility.h:921: error: template declaration of 'float stof_ex'
MT/j004-g060/jachoo-minetest-jachoo-060888c-CLI/src/utility.h:921: error: expected primary-expression before 'const'
MT/j004-g060/jachoo-minetest-jachoo-060888c-CLI/src/utility.h:924: error: 'stod_ex' declared as an 'inline' variable
MT/j004-g060/jachoo-minetest-jachoo-060888c-CLI/src/utility.h:924: error: template declaration of 'double stod_ex'
MT/j004-g060/jachoo-minetest-jachoo-060888c-CLI/src/utility.h:924: error: expected primary-expression before 'const'
MT/j004-g060/jachoo-minetest-jachoo-060888c-CLI/src/utility.h:927: error: 'stoi_ex' declared as an 'inline' variable
MT/j004-g060/jachoo-minetest-jachoo-060888c-CLI/src/utility.h:927: error: template declaration of 'double stoi_ex'
MT/j004-g060/jachoo-minetest-jachoo-060888c-CLI/src/utility.h:927: error: expected primary-expression before 'const'
cc1plus: warning: unrecognized command line option "-Wno-unused-but-set-variable"
make[2]: *** [src/CMakeFiles/minetest.dir/content_sao.cpp.o] Error 1
make[1]: *** [src/CMakeFiles/minetest.dir/all] Error 2
make: *** [all] Error 2
Same thing here.
An innocent kitten dies every time you top-post.

jachoo
Member
Posts: 45
Joined: Mon Sep 12, 2011 08:29

by jachoo » Post

Huh... :/ Maybe now?

User avatar
Menche
Member
Posts: 1001
Joined: Sat Jul 02, 2011 00:43
IRC: Menchers
In-game: Menche
Location: An island in a lava lake.

by Menche » Post

Still happens. =(
An innocent kitten dies every time you top-post.

placki
Member
Posts: 19
Joined: Sun Oct 23, 2011 23:21

by placki » Post

It reports no errors in utility.h after removing "typename" from declarations of stof_ex, stod_ex and stoi_ex.
But there are still other errors:
MT/j005/jachoo-minetest-jachoo-38e6a39-SRV/src/map.cpp: In member function 'void Map::removeNodeAndUpdate(v3s16, irr::core::map<irr::core::vector3d<short int>, MapBlock*>&)':
MT/j005/jachoo-minetest-jachoo-38e6a39-SRV/src/map.cpp:1192: error: expected type-specifier
MT/j005/jachoo-minetest-jachoo-38e6a39-SRV/src/map.cpp:1192: error: expected unqualified-id before '&' token
MT/j005/jachoo-minetest-jachoo-38e6a39-SRV/src/map.cpp:1192: error: expected ')' before '&' token
MT/j005/jachoo-minetest-jachoo-38e6a39-SRV/src/map.cpp:1192: error: expected '{' before '&' token
MT/j005/jachoo-minetest-jachoo-38e6a39-SRV/src/map.cpp:1192: error: expected primary-expression before ')' token
MT/j005/jachoo-minetest-jachoo-38e6a39-SRV/src/map.cpp:1192: error: expected ';' before ')' token
Last edited by placki on Sat Nov 19, 2011 12:07, edited 1 time in total.

jachoo
Member
Posts: 45
Joined: Mon Sep 12, 2011 08:29

by jachoo » Post

I hate it. Now?

See that I must buy a new disk and install gcc...

User avatar
Menche
Member
Posts: 1001
Joined: Sat Jul 02, 2011 00:43
IRC: Menchers
In-game: Menche
Location: An island in a lava lake.

by Menche » Post

Yay! It works! There's alot of errors during compiling but it builds fine and everything seems to work.
An innocent kitten dies every time you top-post.

jachoo
Member
Posts: 45
Joined: Mon Sep 12, 2011 08:29

by jachoo » Post

What errors? Please upload them :)

What about runtime errorrs? On Windows I got tons of sigsegvs :/// And don't have any idea what's wrong :/ Maybe it's something with Irrlicht or original minetest code... Or concurrent data writes... Debugging gives no help :/

-------

Also there is need to save teleports' info to sqlite... I don't know how to do this, can anyone help? Now I'm saving it as string in map_meta.txt, but for hundreds of teleports it will be very slow :/
Last edited by jachoo on Sat Nov 19, 2011 21:47, edited 1 time in total.

placki
Member
Posts: 19
Joined: Sun Oct 23, 2011 23:21

by placki » Post

these are signed/unsigned mixing warnings like these (line numbers are bit off):
In file included from cli-jachoo-minetest-jachoo-38e6a39/src/connection.h:28,
from cli-jachoo-minetest-jachoo-38e6a39/src/server.h:23,
from cli-jachoo-minetest-jachoo-38e6a39/src/server.cpp:20:
cli-jachoo-minetest-jachoo-38e6a39/src/utility.h: In function 'std::vector<T, std::allocator<_CharT> > str_split(const T&, const D&, int) [with T = std::wstring, D = wchar_t]':
cli-jachoo-minetest-jachoo-38e6a39/src/server.cpp:3551: instantiated from here
cli-jachoo-minetest-jachoo-38e6a39/src/utility.h:786: warning: comparison between signed and unsigned integer expressions
cli-jachoo-minetest-jachoo-38e6a39/src/server.cpp:3551: instantiated from here
cli-jachoo-minetest-jachoo-38e6a39/src/utility.h:792: warning: comparison between signed and unsigned integer expressions

jachoo
Member
Posts: 45
Joined: Mon Sep 12, 2011 08:29

by jachoo » Post

I'm going on leave tomorrow, so I won't code for a few days.

I've uploaded what I already have, including some new not well-tested features (improved block selection method and crouching - by 'c' key).

Please test and comment. (Hope it compiles on linux...)

Enjoy!

placki
Member
Posts: 19
Joined: Sun Oct 23, 2011 23:21

by placki » Post

I have idea for feature: as there are clans, there should be "clan chat" - ability to send messages visible only by clan members.

kirtash1197
Member
Posts: 21
Joined: Sat Nov 19, 2011 13:40

by kirtash1197 » Post

Oh good! I compiling it and i tested the portals and the clans system. All run perfectly. i'm using GNU/Linux (Ubuntu). Will this function implemented in Minetest 0.3.2?
Last edited by kirtash1197 on Tue Nov 22, 2011 20:27, edited 1 time in total.

User avatar
cisoun
Member
Posts: 232
Joined: Tue Apr 19, 2011 18:56
GitHub: cisoun
IRC: cisoun
In-game: cisoun
Location: Switzerland
Contact:

by cisoun » Post

kirtash1197: If you're talking about the official branch, it must first be accepted by celeron55. (And I hope it will be!)
Not here for a while due to some troubles between my graphic card and Minetest.
Cisoun's Texture Pack | The Conifers Mod (deprecated) | Faenza icons for Minetest |
Website

kirtash1197
Member
Posts: 21
Joined: Sat Nov 19, 2011 13:40

by kirtash1197 » Post

cisoun wrote:kirtash1197: If you're talking about the official branch, it must first be accepted by celeron55. (And I hope it will be!)
Thanks for the info ;)

User avatar
Melkor
Member
Posts: 378
Joined: Sat Sep 24, 2011 01:03
Location: Underground

by Melkor » Post

I hope this inplementaton don't kill the use of minecarts even before they get implemented too. Teleport should not be easy to create, maybe using a new and rare material? Just my opinion :)

User avatar
Menche
Member
Posts: 1001
Joined: Sat Jul 02, 2011 00:43
IRC: Menchers
In-game: Menche
Location: An island in a lava lake.

by Menche » Post

Teleports aren't easy to create. They require 8 steel blocks, which require 9 steel ingots each. So to get a pair of teleports you need 72 iron ore, as well as a block of mese. I think they should be easier, you would still need to transport things in the minecarts right? Disabling flying would also make it much harder to gather all that iron and mese.
An innocent kitten dies every time you top-post.

User avatar
Melkor
Member
Posts: 378
Joined: Sat Sep 24, 2011 01:03
Location: Underground

by Melkor » Post

You are right about disabling the fligth mode, that make a difference, but is still easy find iron and coal, you don't really need to go underground. Just for looking in the walls of a mountain is possible find tons of them. Sometimes if you are lucky, you can even find MESE in the surface close to the spawn point! See the video post in the c55 blog, that guy -sirshadowwhatever- find, just walking, 5 or 3 MESE blocks (im not sure) in a small lake

hijera
Member
Posts: 36
Joined: Sun Jun 19, 2011 13:04

by hijera » Post

the one of the problem is that server works only with player coords now - it don't know acceleration of player , only its coordinates. It helps player to change coords without any prevention.

User avatar
RAPHAEL
Member
Posts: 627
Joined: Tue Nov 01, 2011 09:09
Location: Earth

by RAPHAEL » Post

Well first time me testing this on the public server... rather nice but I do have some "suggestions".

Slow down the flight. Too fast.
Change the textures to something that looks nicer.
That is all for now lol
"Before you speak, ask yourself: Is it kind, is it true, is it necessary, does it improve upon the silence?"
My mods: http://goo.gl/n4kpn
(Currently Various, Industrial, Fakeblocks, Jail, MoarCraft, Christmas, Replicator, minetest dev installer for linux, bash mod installer, windows mod installer)

User avatar
Staffs
Member
Posts: 329
Joined: Thu Aug 04, 2011 13:16

by Staffs » Post

RAPHAEL wrote:Well first time me testing this on the public server... rather nice but I do have some "suggestions".

Change the textures to something that looks nicer.
Bllshit the textures pwn.
Anyways to jochoo sry if i spell wrong anyways i think now all mods have to be lua scripted and not c++ check out celerons blog it says adding lua for modding .
I love mods :D

User avatar
celeron55
Administrator
Posts: 533
Joined: Tue Apr 19, 2011 10:10
GitHub: celeron55
IRC: celeron55

by celeron55 » Post

I would be glad if Jachoo would try implementing this stuff using the modding API and report back to me if the API lacks some necessary functions or features to make it possible (so I can add them).

jachoo
Member
Posts: 45
Joined: Mon Sep 12, 2011 08:29

by jachoo » Post

Damn. So much code must go to trash :/

User avatar
RAPHAEL
Member
Posts: 627
Joined: Tue Nov 01, 2011 09:09
Location: Earth

by RAPHAEL » Post

jachoo wrote:Damn. So much code must go to trash :/
Sounds to me like mods a comin!
"Before you speak, ask yourself: Is it kind, is it true, is it necessary, does it improve upon the silence?"
My mods: http://goo.gl/n4kpn
(Currently Various, Industrial, Fakeblocks, Jail, MoarCraft, Christmas, Replicator, minetest dev installer for linux, bash mod installer, windows mod installer)

jachoo
Member
Posts: 45
Joined: Mon Sep 12, 2011 08:29

by jachoo » Post

Blah.

Nowai.

Without client support clans and teleports sucks.

I don't really know what to do now. Shall I implement as much as it is possible now in Lua and leave the rest in code?

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests