Discussion: Add a few utility functions to the engine
Discussion: Add a few utility functions to the engine
It's hard to outline or organize these ideas because they kind of bleed into each other...
1st idea is adding a way for mods to store data that gets saved in one of the game databases. I think it should be simple enough to add a table using an already defined backend and mods would serialize/deserialize just like they already do
2nd idea kind of goes along with this. I want to revamp protection but I'm not sure the best approach. The end goal is that I want clients to adhere to permissions and the server to be able to catch when a client doesn't adhere (cheats). I want to have more fine-tuned control than simple protection. For example, players without permission can't enter my protected area, nor can they interact with my containers, buttons, etc. Also the engine shouldn't send the contents of those containers to players who can't open them.
The way I'm thinking to implement this right now is to add table lookup to the engine, permission regulation in a SSM, and use SSCSM for clients to adhere to the permissions. I don't yet understand the capabilities/limitations of SSCSM to know if it can even do this. For table lookup, I mean the engine should provide functions to store tables of coordinates, a function to return a list of tables of which a node matches, store these tables in a db and reload them on restart
Ideas of permissions include being able to move, being able to breathe, being able to fall slowly, being able to interact with nodes, being able to heal, being able to jump higher or move faster, being able to manage permissions.
3rd idea is unrelated to the first two. Set rotation of a node. It doesn't make sense to me why our lua mods have such complicated code to rotate an object. Seems to me that c++ should be able to provide a function to set the rotation direction for each axis
Thoughts? Suggestions? Complaints?
1st idea is adding a way for mods to store data that gets saved in one of the game databases. I think it should be simple enough to add a table using an already defined backend and mods would serialize/deserialize just like they already do
2nd idea kind of goes along with this. I want to revamp protection but I'm not sure the best approach. The end goal is that I want clients to adhere to permissions and the server to be able to catch when a client doesn't adhere (cheats). I want to have more fine-tuned control than simple protection. For example, players without permission can't enter my protected area, nor can they interact with my containers, buttons, etc. Also the engine shouldn't send the contents of those containers to players who can't open them.
The way I'm thinking to implement this right now is to add table lookup to the engine, permission regulation in a SSM, and use SSCSM for clients to adhere to the permissions. I don't yet understand the capabilities/limitations of SSCSM to know if it can even do this. For table lookup, I mean the engine should provide functions to store tables of coordinates, a function to return a list of tables of which a node matches, store these tables in a db and reload them on restart
Ideas of permissions include being able to move, being able to breathe, being able to fall slowly, being able to interact with nodes, being able to heal, being able to jump higher or move faster, being able to manage permissions.
3rd idea is unrelated to the first two. Set rotation of a node. It doesn't make sense to me why our lua mods have such complicated code to rotate an object. Seems to me that c++ should be able to provide a function to set the rotation direction for each axis
Thoughts? Suggestions? Complaints?
-
- Member
- Posts: 172
- Joined: Sat Mar 27, 2021 22:06
- In-game: DOOM_possum
Re: Discussion: Add a few utility functions to the engine
it's a dog eat dog world with the protection Thing, i'd focus more on rotating nodes
Re: Discussion: Add a few utility functions to the engine
Doesn't that still save to an external folder?Linuxdirk wrote: ↑Thu May 06, 2021 18:12Like mod storage?
https://github.com/minetest/minetest/bl ... 5679-L5684 ff.
I'll look at it in a little bit. Maybe I was just looking at mods using an old method?
- Linuxdirk
- Member
- Posts: 3219
- Joined: Wed Sep 17, 2014 11:21
- In-game: Linuxdirk
- Location: Germany
- Contact:
Re: Discussion: Add a few utility functions to the engine
Mod storage is basically meta data stored in JSON format. If this is not enough or too annoying to use then mod authors use different custom solutions.
- Blockhead
- Member
- Posts: 1698
- Joined: Wed Jul 17, 2019 10:14
- GitHub: Montandalar
- IRC: Blockhead256
- In-game: Blockhead Blockhead256
- Location: Land Down Under
- Contact:
Re: Discussion: Add a few utility functions to the engine
Please elaborate. Rotation is handled through param2. What type of operations do you want the interface to do? I'm thinking you might be after none, one or all of:0siribix wrote: ↑Tue May 04, 2021 21:583rd idea is unrelated to the first two. Set rotation of a node. It doesn't make sense to me why our lua mods have such complicated code to rotate an object. Seems to me that c++ should be able to provide a function to set the rotation direction for each axis
Thoughts? Suggestions? Complaints?
- Rotate clockwise or anticlockwise with one of 6 faces as the reference point.
- More rotation options (>23) that let you mirror on an axis.
- Rotate textures on each side independently.
- Set rotation with some kind of human-readable table like {front = "x+"}.
- Something else that you haven't explained yet.
/˳˳_˳˳]_[˳˳_˳˳]_[˳˳_˳˳\ Advtrains enthusiast | My map: Noah's Railyard | My Content on ContentDB ✝️♂
Re: Discussion: Add a few utility functions to the engine
I want a utility function that adds an enemy. it should have a basic UI . this would make adding enemies easier. later the basic UI could be changed with flags and otehr feilds. of course this should be done by an expert and added to the engine as quickly as possbile. sorry but I have a vision and I am delegating this task (officially). this is how city-states like UR worked. in return you will gratefully be able to play my mod when it releases . this will begin a rennisance in minetest . but only if those engine developers shape up and get their act together .
sorry but the king just has amazing incredible ideas. but he didn't write any of them down. that was for the scribes. he also did not read either. he had scholars to read to him. similarly I think those "scribes" at the git hub should start getting busy instead of what ever they are up to instead
sorry but the king just has amazing incredible ideas. but he didn't write any of them down. that was for the scribes. he also did not read either. he had scholars to read to him. similarly I think those "scribes" at the git hub should start getting busy instead of what ever they are up to instead
Re: Discussion: Add a few utility functions to the engine
to anyone who's concerned. this is officially what you could call a "pull request" . I am confident that my post will be copied in full to the "git hub" by one of my servants or other dignitaries ( if you are privledged enough to be in my presence. I am talking about YOU) will then be copying my incredibly idea as a "pull request" to the git hub people so that they waste no time in the implementation of my unique idea. They are a wreched lost people wandering a desert of their own dead skin. and my creative mind is an oasis that I may allow them to drink from so that their hands may once again become fertile with the spark of creation
also. I will accept their thank-you's/apologies and groveling . you may post it into this thread . but do not be offended if I do not listen to all of it ( I use "dicatition" on my computer. so it talks to me ) . My time is valueble
also. I will accept their thank-you's/apologies and groveling . you may post it into this thread . but do not be offended if I do not listen to all of it ( I use "dicatition" on my computer. so it talks to me ) . My time is valueble
- philipbenr
- Member
- Posts: 1897
- Joined: Fri Jun 14, 2013 01:56
- GitHub: philipbenr
- IRC: philipbenr
- In-game: robinspi
- Location: United States
Re: Discussion: Add a few utility functions to the engine
Man, didn't know we had a for-free masterclass in sounding pretentious up in here. Could have saved a lot of money.
- freshreplicant
- Member
- Posts: 229
- Joined: Sun Aug 09, 2020 10:37
- In-game: freshreplicant
Re: Discussion: Add a few utility functions to the engine
It's square in delusions of grandeur territory.philipbenr wrote: ↑Wed Aug 18, 2021 19:16Man, didn't know we had a for-free masterclass in sounding pretentious up in here. Could have saved a lot of money.
Re: Discussion: Add a few utility functions to the engine
you're so ungrateful and resentful. but im glad that you can find it in yourself to understand how much I give to you just by allowing you to be in my presence. but I think you've basked in my light long enough . so you can go away now - I think your posts are an eyesore .philipbenr wrote: ↑Wed Aug 18, 2021 19:16Man, didn't know we had a for-free masterclass in sounding pretentious up in here. Could have saved a lot of money.
- philipbenr
- Member
- Posts: 1897
- Joined: Fri Jun 14, 2013 01:56
- GitHub: philipbenr
- IRC: philipbenr
- In-game: robinspi
- Location: United States
Re: Discussion: Add a few utility functions to the engine
That's the extra credit. If you actually believe yourself.freshreplicant wrote: ↑Wed Aug 18, 2021 21:27It's square in delusions of grandeur territory.philipbenr wrote: ↑Wed Aug 18, 2021 19:16Man, didn't know we had a for-free masterclass in sounding pretentious up in here. Could have saved a lot of money.
Re: Discussion: Add a few utility functions to the engine
nice ignore . but face it . this display of weakness only reveals itself in the presence of strength. you are intimidated and lashing out. you're a cornered animal
Who is online
Users browsing this forum: No registered users and 5 guests