| Time |
Nick |
Message |
| 01:18 |
|
bdju joined #luanti |
| 01:55 |
|
CallMeArt joined #luanti |
| 02:43 |
|
Bombo joined #luanti |
| 02:43 |
|
Bombo joined #luanti |
| 03:26 |
|
chilledfrogs joined #luanti |
| 03:45 |
|
AliasStillTaken joined #luanti |
| 03:56 |
CallMeArt |
Hey, my pc is old and I want to learn C++. Any pointers? MSVS is out of the question for me. |
| 03:57 |
user333_ |
do you want a tutorial for c++ or a compiler/IDE setup? |
| 03:58 |
CallMeArt |
Setup |
| 03:58 |
CallMeArt |
please |
| 03:58 |
user333_ |
windows + MSYS2 or linux + gcc, either works for basic C++ programming |
| 03:59 |
CallMeArt |
I got MSYS2 (windows), but for some reason I can't get it to work with my own files |
| 03:59 |
MTDiscord |
<sheriff_u3> I use VSCodium, but it sounds like that's out of the question. (Plus I only do Lua and frontend web development.) |
| 04:00 |
|
MTDiscord joined #luanti |
| 04:00 |
user333_ |
let me try compiling a basic c++ program in my VM rq |
| 04:01 |
user333_ |
(i do almost all of my stuff on linux so i don't have too much experience with msys2) |
| 04:03 |
user333_ |
idk, using `c++ -o test.exe test.cpp` worked for me |
| 04:07 |
CallMeArt |
I've been trying to get a cpp/c compiler such as gcc, but I can't seem to find the downloads |
| 04:08 |
CallMeArt |
What about CMake? That seems more simple that MSYS2 to me. |
| 04:08 |
user333_ |
cmake is a build system |
| 04:08 |
CallMeArt |
*than |
| 04:09 |
[MatrxMT] |
<Blockhead256> MSYS2 is a distribution of software, you can probably get CMake through it |
| 04:09 |
user333_ |
^ |
| 04:14 |
CallMeArt |
I followed the Luanti for engine devs thing and installed MSYS2, which CMake was a part of. I was able to compile Luanti, but my custom made files are not working for some reason. |
| 04:15 |
CallMeArt |
CMake is also something I want to learn, along with SDL. |
| 04:16 |
[MatrxMT] |
<Blockhead256> did you add C++ files? |
| 04:16 |
user333_ |
this discussion is probably better suited for a generic programming channel |
| 04:16 |
[MatrxMT] |
<Blockhead256> maybe, maybe not |
| 04:18 |
user333_ |
well, if they want to learn c++ in general, this is probably not the right channel for that. if they want to learn about the engine's internals, here is the right place |
| 04:19 |
CallMeArt |
I tried to follow several tutorials, (one for cmake, then MSYS2, then gcc) none of which worked. The gcc one was because I couldn't figure out how to get it |
| 04:19 |
CallMeArt |
I do want to learn about the engine's internals, but I need to learn C++ first. |
| 04:20 |
user333_ |
to get a c(++) compiler on msys2, you probably want `pacman -S mingw-w64-clang-x86_64-clang` |
| 04:21 |
user333_ |
then `c++ -o program.exe program.cpp` |
| 04:22 |
CallMeArt |
Do I have to run it from MSYS2, or is there a way I can link it to cmd for convenience? |
| 04:22 |
MTDiscord |
<sheriff_u3> Their on windows, not Linux... |
| 04:23 |
user333_ |
yes, that's instructions for msys2 on windows |
| 04:23 |
user333_ |
CallMeArt, you have to run it from msys2 |
| 04:24 |
CallMeArt |
Okay |
| 04:24 |
MTDiscord |
<sheriff_u3> Hmm ok (saw pacman and though of the Linux package manager). |
| 04:24 |
[MatrxMT] |
<Blockhead256> CallMeArt: Msys2 gives you a bash shell. You can run its programs in cmd with the right PATH setup, or you can run stuff with its bash shell. And either cmd or shell can be run in batch mode by running scripts, .bat/.cmd and .sh respectively |
| 04:25 |
[MatrxMT] |
<Blockhead256> yeah it's a bit of a weird thing how MSYS2's package manager is called that, maybe it shares code |
| 04:35 |
CallMeArt |
user333_: I tried, it said 'bash: c++: command not found' |
| 04:36 |
user333_ |
are you using MSYS2 CLANG64? |
| 04:36 |
CallMeArt |
Not just now |
| 04:36 |
CallMeArt |
I'll try that |
| 04:38 |
|
amfl2 joined #luanti |
| 04:39 |
CallMeArt |
Okay, it worked |
| 04:39 |
CallMeArt |
thanks😁 |
| 04:40 |
user333_ |
yw |
| 04:55 |
|
SwissalpS joined #luanti |
| 05:47 |
|
FeXoR joined #luanti |
| 05:55 |
|
Spookan joined #luanti |
| 06:49 |
|
Oblomov joined #luanti |
| 07:57 |
sfan5 |
rubenwardy: do you have general per-IP ratelimits for the more-heavy pages in CDB? nginx can do that |
| 08:00 |
rubenwardy |
Yeah |
| 08:01 |
rubenwardy |
There's a lower limit for the Python app and a higher limits for the uploads |
| 08:06 |
sfan5 |
i guess the distributed nature of a DDoS made them not helpful in this case |
| 08:06 |
sfan5 |
having limits per /24 (ipv4) or /48 (ipv6) could help with that |
| 08:07 |
rubenwardy |
Oh that could be good |
| 09:32 |
|
chloetax joined #luanti |
| 10:33 |
|
mrkubax10 joined #luanti |
| 10:58 |
|
mrkubax10 joined #luanti |
| 11:23 |
|
PoochInquisitor joined #luanti |
| 11:38 |
|
PoochInquisitor joined #luanti |
| 11:45 |
|
MTDiscord1 joined #luanti |
| 11:52 |
|
Lai0602 joined #luanti |
| 12:05 |
winstonsmith |
the command '/spawnentity' doesn't seem to work for me, even though the online documentation seems to indicate it should. am i missing something fundamental about luanti? are these 'server commands' not available mid-game singleplayer voxelibre or minclonia, say? |
| 12:07 |
[MatrxMT] |
<Blockhead256> Do you have the privileges `give` and `interact`? is there an error fed back in the chat? |
| 12:17 |
winstonsmith |
have the privs, '/help spawnentity' returns 'command not available: spawnentity' |
| 12:21 |
[MatrxMT] |
<Blockhead256> huh, that error message is what `worldedit_commands` (part of WorldEdit) gives you when a command doesn't exist, so `//spawnentity` in your case |
| 12:21 |
[MatrxMT] |
<Blockhead256> remove one slash and you should give the valid built-in command..? |
| 12:27 |
sfan5 |
nah `/help spawnentity` or `/spawnentity` should work |
| 12:27 |
sfan5 |
but it's possible for a game or mod to undefine the command |
| 12:28 |
winstonsmith |
says invalid command with either one or two slashes...i bet i need to install worldedit mod? |
| 12:28 |
sfan5 |
that's not going to help, no |
| 12:29 |
[MatrxMT] |
<Blockhead256> this is true, but the enginesays "-!- Invalid command" instead |
| 12:29 |
winstonsmith |
that is what i get when i just issue "/spawnentity", the "-!- Invalid Command" |
| 12:30 |
[MatrxMT] |
<Blockhead256> a game or must have deleted it. But I searched mineclonia and voxelibre and thought they didn't do that to spawnentity |
| 12:32 |
winstonsmith |
oh well, cheating anyhow....lol. i just having trouble with a iron farm, somehow the zommbie must be getting to the villagers in the little prison i made for them. i wanted to experiment a little easier than boating the villagers around |
| 12:32 |
[MatrxMT] |
<Blockhead256> nvm |
| 12:32 |
[MatrxMT] |
<Blockhead256> games/voxelibre/mods/MISC/mcl_commands/summon.lua |
| 12:32 |
[MatrxMT] |
<Blockhead256> 14:minetest.unregister_chatcommand("spawnentity") |
| 12:33 |
[MatrxMT] |
<Blockhead256> you're supposed to use voxelibre's own /summon command |
| 12:33 |
|
PoochInquisitor joined #luanti |
| 12:34 |
[MatrxMT] |
<Blockhead256> same goes in mineclonia |
| 12:48 |
winstonsmith |
ah ok thanks folks! |
| 12:55 |
|
GNUHacker joined #luanti |
| 13:27 |
|
___nick___ joined #luanti |
| 13:30 |
|
___nick___ joined #luanti |
| 13:35 |
|
Thermoriax joined #luanti |
| 14:54 |
Sheriff_U3 |
Well I've got a Luanti Tools organization setup over at Codeberg if anyone's interested. link: https://codeberg.org/luanti-tools |
| 17:02 |
|
mrkubax10 joined #luanti |
| 17:28 |
|
mrkubax10 joined #luanti |
| 17:43 |
|
crazylad joined #luanti |
| 17:43 |
|
crazylad joined #luanti |
| 18:16 |
MTDiscord |
<herowl> winstonsmith: you're supposed to use /spawn_mob for mobs in VL |
| 18:16 |
MTDiscord |
<herowl> /summon doesn't guarantee proper initialization |
| 18:17 |
MTDiscord |
<herowl> CallMeArt: To learn C++, see learncpp.com |
| 18:17 |
MTDiscord |
<herowl> It has everything, starting with the tool chain setup |
| 20:06 |
|
Sheriff_U3 left #luanti |
| 20:06 |
|
Sheriff_U3 joined #luanti |
| 20:11 |
|
crazylad joined #luanti |
| 21:45 |
|
mrcheese joined #luanti |
| 21:45 |
|
potter joined #luanti |
| 21:46 |
|
ireallyhateirc joined #luanti |
| 22:23 |
|
Trifton joined #luanti |
| 22:37 |
|
panwolfram joined #luanti |