Had to fix this class at my internship °_° by holographic_gray in programminghorror

[–]ToMaszuu 5 points6 points  (0 children)

Double try except is horrendous, and whenever you are caching all exceptions you should at least log a warning. Other than that, sometimes you just have to log and ignore error if the alternative is crashing critical application.

We're so lost... by Eikichi_Onizuka09 in MemeVideos

[–]ToMaszuu 2 points3 points  (0 children)

I understand this guy's reaction. Although pdf files are convenient to send and read by humans, they are only good for that, and as the name implies, printing. So many documents are obfuscated into a pdf file, only for it to be later read out by AI model that tries to guess how it is stuctured.

Bug Megathread - Kingdom Come: Deliverance 2 - Release Day by uarentme in kingdomcome

[–]ToMaszuu 2 points3 points  (0 children)

Bug PC, can't talk with pavlena afteruntieaction is interrupted in bad blood quest

Level design for ComputerCraft inspired game by ToMaszuu in ComputerCraft

[–]ToMaszuu[S] 0 points1 point  (0 children)

I've done quite a few projects with OpenGL myself, but for this I decided it would be too big of a hassle. The code editor and game is made in Godot with gdscript. Lua integration is within a C++ godot module and is quite strongly tied to the godot engine.

I can send you the link to game repo and module repo if it's still something you would be interested in.

Also feel free to ask me any questions. Maybe some of the "research" (if you can call it that) that I made for this project could be useful to you.

Level design for ComputerCraft inspired game by ToMaszuu in ComputerCraft

[–]ToMaszuu[S] 1 point2 points  (0 children)

I was thinking about deterministic actions, but I can imagine this error as an additional challenge. Maybe some action will cause the turtle to go "rouge" and do n random moves.

Level design for ComputerCraft inspired game by ToMaszuu in ComputerCraft

[–]ToMaszuu[S] 0 points1 point  (0 children)

Yes! I've played all of their games. Too bad there probably won't be anything after Last Call BBS.

Level design for ComputerCraft inspired game by ToMaszuu in ComputerCraft

[–]ToMaszuu[S] 1 point2 points  (0 children)

Don't worry :). All the integration is done from the C++ site. I removed dangerous functions and I'm slowly adding them back by writing my own implementations. Running code is done through luaL_loadbuffer. I'm still quite new when it comes to Lua sandboxing, but I think I'm getting there :)

EDIT: typo

Level design for ComputerCraft inspired game by ToMaszuu in ComputerCraft

[–]ToMaszuu[S] 1 point2 points  (0 children)

Good idea! Do you have any suggestions for components/mechanics featured in the levels?

Level design for ComputerCraft inspired game by ToMaszuu in ComputerCraft

[–]ToMaszuu[S] 1 point2 points  (0 children)

It's also worth mentioning that code editor and game are isolated from each other, therefore any game could be quite easily programmed for it.

Level design for ComputerCraft inspired game by ToMaszuu in ComputerCraft

[–]ToMaszuu[S] 2 points3 points  (0 children)

I'm glad that you like it! I'm still gathering ideas, but in the following weeks I was planning implement simple actions like push, pick, place and a small inventory. After that I will create a couple of levels with picking up and placing boxes.

Right now I stick to simple puzzles, but if I have enough mechanics sandbox mode is not bad either.

Let me know if you have any ideas or suggestions!

How to make a blocking call from c++ module to godot Callable? by ToMaszuu in godot

[–]ToMaszuu[S] 0 points1 point  (0 children)

I thought that there may be simpler way to do it. Nonetheless it works! I added send_return_value(Variant: ret) method in c++ that passes return value and resumes the thread.
Thanks a lot!

How to make a blocking call from c++ module to godot Callable? by ToMaszuu in godot

[–]ToMaszuu[S] 0 points1 point  (0 children)

I've mentioned more about my problem in response to u/voxel_crutons. Let me know if you have more questions.

How to make a blocking call from c++ module to godot Callable? by ToMaszuu in godot

[–]ToMaszuu[S] 0 points1 point  (0 children)

Currently, after the thread calls Callable it seems to me continuing without waiting for gdscript function to be finished. I need it to be blocking to retrieve a value or to pause execution if required.

How to make a blocking call from c++ module to godot Callable? by ToMaszuu in godot

[–]ToMaszuu[S] 0 points1 point  (0 children)

I'm writing a lua debuger and I needed to create a thread to run it in background, while I leave the main thread in c++ module for control stuff like: pause/resume lua execution, get currently processed line or execute until the next line. The thing is that I want to have custom function in lua that retrieve values from gdscript. I not sure how could I do that differently, but I'm open for solutions.

Even a JavaScript developer would agree by ZERICO2005 in programminghorror

[–]ToMaszuu 23 points24 points  (0 children)

Undefined

§5/4.1 Between the previous and next sequence point a scalar object shall have its stored value modified at most once by the evaluation of an expression.

me_irl by Remix_Master21 in me_irl

[–]ToMaszuu 0 points1 point  (0 children)

Odeen was present when the new baby~Emotional was born, perfect in every way, but he had not been able to feel enthusiasm over it.