Create a creative, serious build team.

User avatar
Horka
Member
Posts: 167
Joined: Sat Aug 13, 2022 17:38
In-game: Horka

Re: Create a creative, serious buid team.

by Horka » Post

In my Minetest mod, I have created a custom block represented by an OBJ file that is a right-angled triangle with the same dimensions as slabs. I want this custom block to behave in the same way as slabs when placed.

In other words, I want the block to be positioned either at the top or the bottom of the target block, depending on the placement position, just like the default slabs in Minetest Game. I also want the placement behavior to be consistent when targeting the top or bottom of a block.

Could you please provide more information about the specific code , because I'm unsure about?
THANKS

User avatar
Blockhead
Member
Posts: 1673
Joined: Wed Jul 17, 2019 10:14
GitHub: Montandalar
IRC: Blockhead256
In-game: Blockhead Blockhead256
Location: Land Down Under
Contact:

Re: Create a creative, serious buid team.

by Blockhead » Post

Horka wrote:
Thu Jun 08, 2023 15:56
In my Minetest mod, I have created a custom block represented by an OBJ file that is a right-angled triangle with the same dimensions as slabs. I want this custom block to behave in the same way as slabs when placed.

...
You should get used to looking through source code for the games and mods to learn how they do things. In this case, the source code of the slab's on_place lives here. That is the code that sets the rotation when it is placed. You can copy it verbatim as long as you obey its licence (LGPL 2.1, see license.txt in the same directory).

I wonder if you wouldn't be better off just using a library for shapes though, like moreblocks (mainstream), or flux's fork; or ShadMOrdre's lib_shapes.
/˳˳_˳˳]_[˳˳_˳˳]_[˳˳_˳˳\ Advtrains enthusiast | My map: Noah's Railyard | My Content on ContentDB ✝️♂

ShadMOrdre
Member
Posts: 1118
Joined: Mon Dec 29, 2014 08:07
Location: USA

Re: Create a creative, serious buid team.

by ShadMOrdre » Post

@Blockhead, Thanks for the +1.

My gal mod is also a good place to start, as it has numerous blocks for building, and the nodebox shapes library is built in, and it also include shapes not found in lib_shapes.

Shad

User avatar
Horka
Member
Posts: 167
Joined: Sat Aug 13, 2022 17:38
In-game: Horka

Re: Create a creative, serious buid team.

by Horka » Post

Blockhead wrote:
Thu Jun 08, 2023 16:39


You should get used to looking through source code for the games and mods to learn how they do things. In this case, the source code of the slab's on_place lives here. That is the code that sets the rotation when it is placed. You can copy it verbatim as long as you obey its licence (LGPL 2.1, see license.txt in the same directory).

I wonder if you wouldn't be better off just using a library for shapes though, like moreblocks (mainstream), or flux's fork; or ShadMOrdre's lib_shapes.
I would like to create esacliers and slabs
I don't really understand the code.

But I tried several things, here is my code:
Spoiler
dofile(minetest.get_modpath("stairs") .. "/init.lua")

-- Enregistrement des marches et des dalles
stairs.register_stair({
"marble",
"ephese:marble",
{cracky = 2},
{"ephese_marble.png"},
"Marble Stair",
"Marble Slab",
default.node_sound_stone_defaults(),
false
})

stairs.register_stair({
"ephese:ivor",
"ivor",
{choppy = 2, oddly_breakable_by_hand = 2},
{"ephese_ivoire.png"},
"Ivor Stair",
"Ivor Slab",
default.node_sound_wood_defaults(),
false
})

stairs.register_stair({
"ephese:blue_mosaic",
"blue_mosaic",
{cracky = 2},
{"ephese_blue_mosaic.png"},
"Blue Mosaic Stair",
"Blue Mosaic Slab",
default.node_sound_stone_defaults(),
false
})

stairs.register_stair({
"ephese:red_mosaic",
"red_mosaic",
{cracky = 2},
{"ephese_red_mosaic.png"},
"Red Mosaic Stair",
"Red Mosaic Slab",
default.node_sound_stone_defaults(),
false
})



And here is the error message
ModError: Failed to load and run script from C:\Minetest\minetest-5.7.0-win64\bin\..\mods\000\init.lua:
....0-win64\bin\..\games\minetest_game\mods\stairs/init.lua:87: bad argument #1 to 'ipairs' (table expected, got nil)
stack traceback:
[C]: in function 'ipairs'
....0-win64\bin\..\games\minetest_game\mods\stairs/init.lua:87: in function 'register_stair'
C:\Minetest\minetest-5.7.0-win64\bin\..\mods\000\init.lua:4: in main chunk
Voir « debug.txt » pour plus d'informations.
What's wrong?
Sorry to bother you, I don't understand anything.
Last edited by Horka on Thu Oct 26, 2023 14:16, edited 1 time in total.

User avatar
Horka
Member
Posts: 167
Joined: Sat Aug 13, 2022 17:38
In-game: Horka

Re: Create a creative, serious buid team.

by Horka » Post

Otherwise someone would be interested in making mods ?
I can give textures and 3d file, and all the necessary information,
except the code XD
Not necessarily for this first project, but if you are interested join the discord/matrix

User avatar
Horka
Member
Posts: 167
Joined: Sat Aug 13, 2022 17:38
In-game: Horka

Re: Create a creative, serious buid team.

by Horka » Post

Okay, thank you, I got it. Sorry for these stupid questions, I will inform myself next time.
In the end, it's quite simple. Thanks to ChatGPT for explaining so well, lol 🤣.
My mod is finished. It should be released in the next few days.
The project is progressing slowly but surely.

User avatar
Tuxilio
Member
Posts: 140
Joined: Mon Nov 28, 2022 12:18
In-game: gamer777 tuxilio
Contact:

Re: Create a creative, serious buid team.

by Tuxilio » Post

Horka wrote:
Mon Jun 12, 2023 17:58
...Sorry for these stupid questions, I will inform myself next time...
You're always allowed to ask. I'm not familiar with the subject so I can't help, but maybe others will help if you write your questions here.

User avatar
Horka
Member
Posts: 167
Joined: Sat Aug 13, 2022 17:38
In-game: Horka

Re: Create a creative, serious buid team.

by Horka » Post

Tuxilio wrote:
Tue Jun 13, 2023 12:52
You're always allowed to ask. I'm not familiar with the subject so I can't help, but maybe others will help if you write your questions here.
Yes I know I can. But the most knowledgeable people prefer to answer questions that don't have a simple and logical answer (for them). I ended up figuring it out on my own. But that's okay, the main thing is: The ephesus mod is coming... 😄

User avatar
Horka
Member
Posts: 167
Joined: Sat Aug 13, 2022 17:38
In-game: Horka

Re: Create a creative, serious buid team.

by Horka » Post

Now I will look at how a server works.

User avatar
Horka
Member
Posts: 167
Joined: Sat Aug 13, 2022 17:38
In-game: Horka

Re: Create a creative, serious buid team.

by Horka » Post


User avatar
Horka
Member
Posts: 167
Joined: Sat Aug 13, 2022 17:38
In-game: Horka

Re: Create a creative, serious buid team.

by Horka » Post

I want to say that the project will move slower this summer but it is still advancing.

User avatar
Horka
Member
Posts: 167
Joined: Sat Aug 13, 2022 17:38
In-game: Horka

Re: Create a creative, serious buid team.

by Horka » Post

I am in the process of locating the large locations of the map which is 10000 m2 (I'm not sure, in any case it's very big) so it takes me time. Before launching a server.
In addition I changed the icon which is better now, it combines the letters MBT:
Spoiler
logo MTG.png
logo MTG.png (5.66 KiB) Viewed 1194 times
Last edited by Horka on Thu Oct 26, 2023 14:17, edited 1 time in total.

User avatar
Tuxilio
Member
Posts: 140
Joined: Mon Nov 28, 2022 12:18
In-game: gamer777 tuxilio
Contact:

Re: Create a creative, serious buid team.

by Tuxilio » Post

Hi,
is there anything else you want done so we can get started?

User avatar
Horka
Member
Posts: 167
Joined: Sat Aug 13, 2022 17:38
In-game: Horka

Re: Create a creative, serious buid team.

by Horka » Post

Tuxilio wrote:
Mon Aug 28, 2023 05:19
Hi,
is there anything else you want done so we can get started?
Unfortunately without a server we can not do much and as I know nothing about it I look at how to do it. I figured out how to set it up but I don't understand everything yet. The server map is ready. It just remains to put it in place.
In addition I was on vacation, so I will be able to do it in the coming weeks. If you want to help me, you can advise me mods, or others for the projects or give me useful links to set up the server because minetest wiki is not very understandable (and I have not done anything like that) on this subject.
ephese.jpg
ephese.jpg (747.33 KiB) Viewed 1063 times
plan (1).jpg
plan (1).jpg (818.23 KiB) Viewed 1063 times
Here is the map of 10000m2!! for the curious
I did them with WorldPainter.
I will keep you posted.
Also if you don't know everything about the mod I created ephesus join matrix
Ephesus: https://content.minetest.net/packages/C ... r/ephesus/
Last edited by Horka on Thu Oct 26, 2023 14:18, edited 1 time in total.

User avatar
Horka
Member
Posts: 167
Joined: Sat Aug 13, 2022 17:38
In-game: Horka

Re: Create a creative, serious buid team.

by Horka » Post

In addition I have problems with this to import some monuments...
viewtopic.php?f=6&t=10641

User avatar
Tuxilio
Member
Posts: 140
Joined: Mon Nov 28, 2022 12:18
In-game: gamer777 tuxilio
Contact:

Re: Create a creative, serious buid team.

by Tuxilio » Post

OK, if you have problems with the server, do not hesitate. I can't help you much, but I can help you a little.

User avatar
Tuxilio
Member
Posts: 140
Joined: Mon Nov 28, 2022 12:18
In-game: gamer777 tuxilio
Contact:

Re: Create a creative, serious buid team.

by Tuxilio » Post

Here's a tutorial for setting up a server: https://www.youtube.com/watch?v=64dYAFkGjWU
Or the Minetest Wiki: https://wiki.minetest.net/Setting_up_a_server/Debian

What system and, if you're using Linux, what distribution do you use?

User avatar
SuperStarSonic
Member
Posts: 160
Joined: Fri Oct 14, 2022 20:30
GitHub: Python-Sargent
In-game: SuperStarSonic
Location: Earth (may be out of date)

Re: Create a creative, serious buid team.

by SuperStarSonic » Post

Hello, team, I am interested in this project and just spent 30 minutes catching up, in fact I'm not sure why I didn't see this topic in the forums this whole time. But anyways, I wanted to ask you a question:

How do you join the team if you have access to neither Matrix or Discord?

User avatar
Tuxilio
Member
Posts: 140
Joined: Mon Nov 28, 2022 12:18
In-game: gamer777 tuxilio
Contact:

Re: Create a creative, serious buid team.

by Tuxilio » Post

Hi,

Great that you want to get involved!

If you don't have access to Discord or Matrix, you can read about it here on the forum. Almost everything is written in the forum as well.
I suggest you create a Matrix account. The easiest way to do this is to go to https://app.element.io/. You don't need to install anything, Element (the Matrix client) can be used entirely online. For your information, Matrix does not track anyone and is recommended by many privacy advocates.

Hope this helps.

Regards,
Tuxilio

User avatar
Tuxilio
Member
Posts: 140
Joined: Mon Nov 28, 2022 12:18
In-game: gamer777 tuxilio
Contact:

Re: Create a creative, serious buid team.

by Tuxilio » Post

Here's the link to the public Matrix Space: https://matrix.to/#/#M.B.T:matrix.org
And to the Matrix homepage: https://matrix.org/

User avatar
Horka
Member
Posts: 167
Joined: Sat Aug 13, 2022 17:38
In-game: Horka

Re: Create a creative, serious buid team.

by Horka » Post

Tuxilio wrote:
Tue Aug 29, 2023 08:37
Here's a tutorial for setting up a server: https://www.youtube.com/watch?v=64dYAFkGjWU
Or the Minetest Wiki: https://wiki.minetest.net/Setting_up_a_server/Debian

What system and, if you're using Linux, what distribution do you use?

I'm using Windows 64.
I would also like to thank you for your help and contribution.
Thank you ver much Tuxilio.
Last edited by Horka on Tue Aug 29, 2023 16:32, edited 1 time in total.

User avatar
Horka
Member
Posts: 167
Joined: Sat Aug 13, 2022 17:38
In-game: Horka

Re: Create a creative, serious buid team.

by Horka » Post

SuperStarSonic wrote:
Tue Aug 29, 2023 14:27
Hello, team, I am interested in this project and just spent 30 minutes catching up, in fact I'm not sure why I didn't see this topic in the forums this whole time. But anyways, I wanted to ask you a question:

How do you join the team if you have access to neither Matrix or Discord?
Hi SuperStarSonic.
It's great more and more people are interested in this project !
For now I mainly use Matrix because most people prefer it to discord (even if for the moment there is not much to say, as long as the server is not in place).
If you want to participate there is no other way for now than to use them.
Keep me posted. (I recommend the matrix)

User avatar
SuperStarSonic
Member
Posts: 160
Joined: Fri Oct 14, 2022 20:30
GitHub: Python-Sargent
In-game: SuperStarSonic
Location: Earth (may be out of date)

Re: Create a creative, serious buid team.

by SuperStarSonic » Post

Tuxilio wrote:
Tue Aug 29, 2023 14:53
Hi,

Great that you want to get involved!

If you don't have access to Discord or Matrix, you can read about it here on the forum. Almost everything is written in the forum as well.
I suggest you create a Matrix account. The easiest way to do this is to go to https://app.element.io/. You don't need to install anything, Element (the Matrix client) can be used entirely online. For your information, Matrix does not track anyone and is recommended by many privacy advocates.

Hope this helps.

Regards,
Tuxilio
I am unable to do so for various reasons. Thanks for the help though.

User avatar
Horka
Member
Posts: 167
Joined: Sat Aug 13, 2022 17:38
In-game: Horka

Re: Create a creative, serious buid team.

by Horka » Post

SuperStarSonic wrote:
Tue Aug 29, 2023 16:57


I am unable to do so for various reasons. Thanks for the help though.
Ok in this case I would post the advance here too while waiting for the server. Anyway there is not much more on matrix/discord.

Sokomine
Member
Posts: 4282
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine
IRC: Sokomine
In-game: Sokomine

Re: Create a creative, serious buid team.

by Sokomine » Post

Building is always good and a lot of fun.

I think you don't need your own server. There are so many good servers out there with more than enough room for new builds - even very big ones! That is, as long as you don't want to use WorldEdit. That's usually a problem on public servers. But WE usually isn't needed.

It doesn't even matter that much in the end if it's a creative or survival server. Even on survival servers most players have...enough...of most materials and are willing to help if they see that something impressive is beeing built.
A list of my mods can be found here.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests