My fork - ownership of blocks, clans, teleports

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

by Staffs » Fri Nov 11, 2011 19:53

jachoo wrote:Hello after quite long break ;)

I'd merged placki's version and... I've added cool new teleport system (as cisoun suggested - they now work like PORTALS :D)

How it works? First, place 2 teleports somewhere. Second, connect them mutually. Third, try them :)

The best effect is when you place 2 'flying' horizontal teleports and jump from large altitude onto one :)

To make it working you must add this line to minetest.conf:
crafted_teleports = 2


There are some weird bugs so we need more testing! Placki, please try upgrading your server :)

*Second connect them mutually how is that ? how will it work ? I need more specific instructions so i can try it :/
I love mods :D
 

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

by placki » Fri Nov 11, 2011 20:10

Staffs wrote:*Second connect them mutually how is that ? how will it work ? I need more specific instructions so i can try it :/


for example:
Build teleport A at 10,20,30 and teleport B at -23,-34,-45.
To connect/pair them you need to type "-23,-34,-45" as target for teleport A and "10,20,30" as target for teleport B.
Example of what jachoo said is visible at "placek" server:
There is high ladder near pyramid, if you jump into portal/teleport below you will exit flying up from other teleport - and will continue flying/jumping in "portal" fashion.
And nearby, near top of pyramid (outside) there are several teleports: if you fall into some, you will teleport higher and accelerate, after several loops you will have high speed. And due to lag you will finally fall out of that loop and get into teleport below, which will translate your vertical speed into horizontal for "long jump competition".
Last edited by placki on Fri Nov 11, 2011 20:21, edited 1 time in total.
 

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

by hijera » Fri Nov 11, 2011 20:26

could someone build win32 version?
 

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

by jachoo » Fri Nov 11, 2011 23:50

Last edited by jachoo on Fri Nov 11, 2011 23:51, edited 1 time in total.
 

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

by Staffs » Sat Nov 12, 2011 10:18

Ok i just tried it .. Im out this is just too complicated for me. Very good work jachoo but it will be too hard for new players or players at all to underrstand this.... :/
I love mods :D
 

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

by hijera » Sat Nov 12, 2011 14:24

whats about a bit easier system - just give every teleport id, so teleports with same id will be connected
 

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

by Staffs » Sat Nov 12, 2011 14:44

Yeah that would be A LOT easier cause i just dont know the co-ords of every teleport :/
I love mods :D
 

User avatar
cisoun
Member
 
Posts: 230
Joined: Tue Apr 19, 2011 18:56
GitHub: cisoun
IRC: cisoun
In-game: cisoun

by cisoun » Sat Nov 12, 2011 16:31

Yes, you better have to run the game in a terminal so when you put a teleporter somewhere, his correct position is printed in the output.
However, I agree the fact that teleporters should be connected by an ID otherwise it takes a lot of time to set them up correctly.
You should map the teleporters with their position in a vector or something like that so you can search a teleporter by it's position easily and then connect them to each others.
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
 

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

by jachoo » Sat Nov 12, 2011 18:12

We have to make decision. Possible options are:

1. General teleports. Teleport can aim any coords. When at the destination another teleport exists - it works like portal.
+ Very easy to use if you don't need portal features
+ General-purpose system. You can create everything you can imagine ;)
+ No need to introduce naming system for teleports
- By such teleports, player can get into hostile clan territory
- Hard and very uncomfortable to use if you want teleports work like portals or make two-way teleports

2. Paired two-way teleports. Each teleport pair has assigned unique ID.
+ The easiest to use
- Only two-way teleports permitted
- Impossible to make many teleports aim at one exit teleport
- Need to create naming system for teleports

3. Named teleports. Each teleport has two parameters. Its own name and name of destination teleport.
+ Compromise between 1. and 2
+ Almost general-purpose teleports (two-way and one-way portals)
+/- Less easy to use than 2., but still comfortable
- Need to create naming system for teleports

---------

I vote for 3 :)
Last edited by jachoo on Sat Nov 12, 2011 18:14, edited 1 time in total.
 

User avatar
Menche
Member
 
Posts: 994
Joined: Sat Jul 02, 2011 00:43

by Menche » Sat Nov 12, 2011 23:42

I like #3. A few suggestions: if the destination is a coordinate set, it behaves like #1; otherwise, it assumes the destination is a teleport label and it behaves like #3. And, an optional "locked" or "private" parameter that prevents other clans' teleports from linking to it.
An innocent kitten dies every time you top-post.
I am on the Voxelands Forums more often than here.
Try Voxelands (forked from Minetest 0.3) by darkrose
 

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

by jachoo » Sun Nov 13, 2011 11:48

I've started to implement all this propositions (as an option in config file). Last chance to give me other suggestions :)
Last edited by jachoo on Sun Nov 13, 2011 11:49, edited 1 time in total.
 

User avatar
sdzen
Member
 
Posts: 1170
Joined: Fri Aug 05, 2011 22:33

by sdzen » Sun Nov 13, 2011 12:27

#3 is my vote
[h]Zen S.D.[/h] The next generation of tranquility!
malheureusement mon français n'est pas bon :<
Owner of the Zelo's
In game name: MuadTralk, spdtainted, sdzen, sd zen, sdzeno
 

User avatar
cisoun
Member
 
Posts: 230
Joined: Tue Apr 19, 2011 18:56
GitHub: cisoun
IRC: cisoun
In-game: cisoun

by cisoun » Sun Nov 13, 2011 15:49

#3 ftw
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
Staffs
Member
 
Posts: 329
Joined: Thu Aug 04, 2011 13:16

by Staffs » Sun Nov 13, 2011 17:40

#3 <--
I love mods :D
 

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

by jachoo » Mon Nov 14, 2011 06:21

First, alpha version of teleport naming system is done.

When I was testing this, I got some weird errors... Please test it and report bugs.

Instructions:
1. Download latest source from github & compile
2. Add this lines to minetest.conf
teleport_allow_coords = 1
teleport_allow_oneway = 1

3. Run minetest and place somewhere few teleports. You have now 3 possibilities:
a) coords should work like before (unless teleport_allow_coords=0)
b) you can assign names to teleports (instead of coords you write just that name). Example: two teleports with name "myhouse" will be linked together.
c) you can define teleports name and destination separately (unless teleport_allow_oneway=0). Separator is "->". Example: write to teleport 1 text "->b", and to teleport 2 text "b->c", and to teleport 3 text "c->". Now they are linked in a sequence, where teleport 1 is only entrance, and teleport 2 is only exit.
4. Report bugs, please!

Enjoy!
Last edited by jachoo on Mon Nov 14, 2011 06:24, edited 1 time in total.
 

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

by placki » Thu Nov 17, 2011 14:10

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: 230
Joined: Tue Apr 19, 2011 18:56
GitHub: cisoun
IRC: cisoun
In-game: cisoun

by cisoun » Thu Nov 17, 2011 17:57

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: 994
Joined: Sat Jul 02, 2011 00:43

by Menche » Fri Nov 18, 2011 04:13

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.
I am on the Voxelands Forums more often than here.
Try Voxelands (forked from Minetest 0.3) by darkrose
 

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

by jachoo » Sat Nov 19, 2011 04:15

Huh... :/ Maybe now?
 

User avatar
Menche
Member
 
Posts: 994
Joined: Sat Jul 02, 2011 00:43

by Menche » Sat Nov 19, 2011 04:57

Still happens. =(
An innocent kitten dies every time you top-post.
I am on the Voxelands Forums more often than here.
Try Voxelands (forked from Minetest 0.3) by darkrose
 

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

by placki » Sat Nov 19, 2011 12:03

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 » Sat Nov 19, 2011 14:10

I hate it. Now?

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

User avatar
Menche
Member
 
Posts: 994
Joined: Sat Jul 02, 2011 00:43

by Menche » Sat Nov 19, 2011 18:02

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.
I am on the Voxelands Forums more often than here.
Try Voxelands (forked from Minetest 0.3) by darkrose
 

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

by jachoo » Sat Nov 19, 2011 21:43

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 » Sun Nov 20, 2011 12:43

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 » Tue Nov 22, 2011 17:45

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 » Tue Nov 22, 2011 18:25

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 » Tue Nov 22, 2011 20:06

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: 230
Joined: Tue Apr 19, 2011 18:56
GitHub: cisoun
IRC: cisoun
In-game: cisoun

by cisoun » Tue Nov 22, 2011 21:48

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 » Tue Nov 22, 2011 21:50

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 ;)
 

PreviousNext

Return to Minetest Engine

Who is online

Users browsing this forum: No registered users and 1 guest

cron