Guild icon
Mental Games
addons / devs-chat
Chat where addon devs can talk to each other
Avatar
Is there no sky.getColor()?
Avatar
Avatar
DeanCode
Is there no sky.getColor()?
Sounds like big idea
Avatar
Avatar
DeanCode
Is there no sky.getColor()?
No
Avatar
@here I made a small project to write Addons for the Mental Engine with TypeScript:
  • this allows for much better integration to your IDE as thanks to the type declarations you can now see what functions are available
  • you can see examples (at least for the once i added documentation)
  • errors like typos, invalid function names or parameter type can be identified before even having to run the game Currently I only tested it for Linux and will probably need some fixes to work on Windows. For more information read the README on GitHub:
https://github.com/danielfvm/mental-ts/
(edited)
Contribute to danielfvm/mental-ts development by creating an account on GitHub.
heart 1
ΛLΞX pinned a message to this channel. 16.08.2024 11:09
Avatar
i'm in shock, just wow
Avatar
yeah im surprised that it works fairly fine
11:10
i havent rly tested it much though
11:11
but its already much easier for me to write addons with this system
11:11
🙂
Avatar
yeah it looks gorgeous
Avatar
Also i havent added all features of the mental-engine as i dont rly know what functions exists. https://github.com/danielfvm/mental-ts/blob/main/mental-types/index.d.ts
Contribute to danielfvm/mental-ts development by creating an account on GitHub.
Avatar
Avatar
DeanCode
Also i havent added all features of the mental-engine as i dont rly know what functions exists. https://github.com/danielfvm/mental-ts/blob/main/mental-types/index.d.ts
(Most things I know of are specified in this file) (edited)
Avatar
i will contribute when i'll be home for sure
Avatar
yeah that would be great heart
heart 1
11:14
i hope you dont die from shock when reading my bad code xd - i never wrote sth like that so i dont rly know what the proper way to do this is
Avatar
don't worry, i do not either xd
11:15
your code is good
11:15
you just didn't see my engine code (edited)
Avatar
Avatar
ΛLΞX
your code is good
thanks lol
mc_diamond 1
Avatar
brb
👍 1
11:19
here
11:19
it's so strange to see the links to the mentalgames.org in someone's repo
Dl8ZBvCUYAApq8T 1
11:19
and just the engine related stuff
11:19
my mind is blown
11:20
i'll test that out rn
Avatar
Do you have a table that specifies the name of all valid keys? Because then i could add types for that as well which would help a lot to (i never remember if for instance A is KeyA, KEY_A, a or just A)
Avatar
Avatar
ΛLΞX
i'll test that out rn
yup let me know if there is a problem
11:21
it should automatically download the game with the ./setup.sh
Avatar
Avatar
DeanCode
Do you have a table that specifies the name of all valid keys? Because then i could add types for that as well which would help a lot to (i never remember if for instance A is KeyA, KEY_A, a or just A)
did you mean the key code?
Avatar
yes the key codes
Avatar
yeah i have that
11:22
i have a std::map to translate corresponding keys to the human readable ones lol
Avatar
another thing i didnt know was what the name of the other RigidbodyType was
Avatar
static dynamic and i had a third one
11:22
but i can't remember
Avatar
ok ok let me know if you remember 👍
Avatar
okie dokie
11:23
<3
11:26
i did something wrong?
Avatar
hm okay i'll need to change that
11:27
as far as i know importing json using the "with" keyword is still experimental
Avatar
yeah seems like
Avatar
ill need to change that to a simple JSON.parse
Avatar
read that in the repo issues tab
Avatar
try pulling again
Avatar
a sec
11:30
Yaaaay
11:30
Avatar
nice
11:30
yup thats how it should look like lol
Avatar
yeah you can change the name in mntconfig.json
11:31
though it won't delete the old one if you do
Avatar
i see
Avatar
Avatar
DeanCode
yeah you can change the name in mntconfig.json
you can also specify which files to run at startup in there
Avatar
maybe save the archive and unzip on every build?
11:32
oh wait, that'll be expensive
11:32
maybe save the prev name on the build
11:32
and then compare the new name and the old one
11:33
and if they're not the same, delete the old folder with the old name
Avatar
yeah i could do that
Avatar
oh i have a new pc, i can work on the level editor finally
Avatar
that would be cool
Avatar
all i'm afraid of is the brush editing
11:35
everything except that is relatively easy (edited)
Avatar
Avatar
ΛLΞX
all i'm afraid of is the brush editing
you need to scale, rotate and move it right?
Avatar
and allow the user to edit by just grabbing the verticies of the brush
Avatar
oh
Avatar
and allow to create and delete verticies
11:38
that's why i'm afraid of it
11:38
but i will try at least
Avatar
yeah
11:38
good luck
Avatar
thanks
Avatar
how will you visualize it? will you use a canvas and if so do you use the classic Context2D or WebGL ?
11:39
Or will you use some lib like ThreeJS?
Avatar
im not sure now what i will use
11:39
but im thinking of threeJS
11:39
yeah
11:40
or pixijs
Avatar
Avatar
ΛLΞX
but im thinking of threeJS
you could even visualize the shaders if you'd use some webgl library like threeJS
Avatar
yeah ik
11:40
even pixijs allows it
11:40
if i can remember correctly
11:43
btw, if you'll need to use a custom shader
11:43
you will need to write two of them
11:43
one is with gls extension
11:43
and the second is .gles one
11:43
one for PC and the second is for mobile phones
11:44
for OpenGL and OpenGL ES
Avatar
yeah mobile is annoying lol
11:44
how do they differ in code?
Avatar
not much in the terms of logic
11:45
but the verying parameters and etc are different
11:45
the geometry shaders is different too
Avatar
Avatar
ΛLΞX
the geometry shaders is different too
do geometry shaders even work for mobile?
11:46
on pc too
Avatar
huh okay
Avatar
but i have a huge problems with storage and std::filesystem on android lol
11:48
so, no addons support for now
11:48
the things are getting worse with every android update
11:48
aquacry
11:48
not all the things but still
Avatar
Avatar
ΛLΞX
aquacry
headpat
Avatar
Avatar
DeanCode
headpat
headpat
Avatar
@DeanCode hello there
Avatar
Avatar
ΛLΞX
@DeanCode hello there
Hello
Avatar
Unknown A B C D E F G H I J K L M N O P Q R S T U V W X Y Z Num0 Num1 Num2 Num3 Num4 Num5 Num6 Num7 Num8 Num9 Escape LControl LShift LAlt LSystem RControl RShift RAlt RSystem Menu LBracket RBracket SemiColon Comma Period Quote Slash BackSlash Tilde Equal Dash Space Return BackSpace Tab PageUp PageDown End Home Insert Delete Add Subtract Multiply Divide Left Right Up Down Numpad0 Numpad1 Numpad2 Numpad3 Numpad4 Numpad5 Numpad6 Numpad7 Numpad8 Numpad9 F1 F2 F3 F4 F5 F6 F7 F8 F9 F10 F11 F12 F13 F14 F15
18:24
here is the keys
18:26
what did i wanted to do?
18:26
Dl8ZBvCUYAApq8T
18:26
i can't remember lol
Avatar
Avatar
ΛLΞX
Unknown A B C D E F G H I J K L M N O P Q R S T U V W X Y Z Num0 Num1 Num2 Num3 Num4 Num5 Num6 Num7 Num8 Num9 Escape LControl LShift LAlt LSystem RControl RShift RAlt RSystem Menu LBracket RBracket SemiColon Comma Period Quote Slash BackSlash Tilde Equal Dash Space Return BackSpace Tab PageUp PageDown End Home Insert Delete Add Subtract Multiply Divide Left Right Up Down Numpad0 Numpad1 Numpad2 Numpad3 Numpad4 Numpad5 Numpad6 Numpad7 Numpad8 Numpad9 F1 F2 F3 F4 F5 F6 F7 F8 F9 F10 F11 F12 F13 F14 F15
thanks
Avatar
no problems
Avatar
Avatar
ΛLΞX
what did i wanted to do?
i will work on the documentation then
headpat 1
18:29
wtf
18:29
i can launch a trash can with discrete gpu
18:29
trash can gpu 🤌🏼
Avatar
lol what
18:30
oh right what RigidbodyTypes are there?
Avatar
oh right thanks
18:30
wait a sec
18:30
static dynamic kinematic
Avatar
thanks 👍
Avatar
@Addon Maker What do you think guys?
Avatar
looks cool - why do you need an account though to see the docs?
Avatar
yeah that was a stupid decision
19:50
i just wanted to bring more accounts
Avatar
lol
Avatar
ok my wife bites me
19:53
and forces me to go to sleep
19:53
lol
19:54
that's sad, cuz i can't work on the weekends
Avatar
oh okay ~ have fun though!
Avatar
thanks
Avatar
and dont get eaten up lol
Avatar
Avatar
ΛLΞX
@Addon Maker What do you think guys?
Tets are really amazing
Avatar
fr fr (edited)
Avatar
Avatar
ΛLΞX
@Addon Maker What do you think guys?
WOOOW
19:56
DOCUMENTATION!
19:56
I waited this
19:56
If you know how I want it
heart 1
20:01
or turn it back?
20:01
@Addon Maker
Avatar
looks kinda strange i guess?
Avatar
yeah a bit
20:02
k wait a sec i gonna upload this one
20:03
before
20:04
after
20:04
ok i will make it functional, somewhen...
Avatar
Avatar
ΛLΞX
after
that looks better
heart 1
Avatar
gn =3
Avatar
Good night 👋
Avatar
Avatar
DeanCode
that looks better
Btw I did a commit and open a merge
20:10
Sticker
Avatar
Avatar
ΛLΞX
Btw I did a commit and open a merge
Yup i saw! Thanks
Avatar
Oh, no problems, I will do more when I am able to
Avatar
Btw I also fixed imports - so now you can import from other files in your project :))
Avatar
Avatar
ΛLΞX
Oh, no problems, I will do more when I am able to
yeah that would be great 👍 (edited)
Avatar
Yaaay
Avatar
Also i think drag hook doesnt work properly, when i run it i get two different values:
20:13
(without moving mouse)
20:13
drag gets a vector2 as parameter right?
Avatar
One variable should be the cursor position, and the second is the drag offset
20:14
But I'm not sure
Avatar
both vec2?
Avatar
Ot my be broken
Avatar
Avatar
DeanCode
both vec2?
Yup
20:14
But I'm not sure
Avatar
ok ok
Avatar
Can't watch now
20:14
Didn't touch that part of the code for a long time
Avatar
Also I have no idea why you want to add 3d support when 3d already works ^^ - but yeah has some obvious issues like the faces being visible on both sides and them having some z-fighting for unknown reasons
Avatar
What kind of magic is that?
Avatar
Avatar
DeanCode
Also I have no idea why you want to add 3d support when 3d already works ^^ - but yeah has some obvious issues like the faces being visible on both sides and them having some z-fighting for unknown reasons
If that's actually an OpenGL functions
09:18
Then it has a z-fight cuz some flags are not turned on for proper 3D support
Avatar
Avatar
ΛLΞX
Then it has a z-fight cuz some flags are not turned on for proper 3D support
yeah maybe
Avatar
I can build with them
09:18
Sticker
09:19
Btw how did you do that?
Avatar
Avatar
ΛLΞX
What kind of magic is that?
its 6 sprites with a custom shader + uniform of float[] that contains the model matrix
09:19
its rly messy xd
09:19
but its on the github
Avatar
Gosh
09:19
Hahaha
09:19
That's awesome
09:20
It's time to make a patch tracing
09:20
Sticker
09:20
I'm joking
Avatar
i also was wondering how the bush thingy works - you said you can specify the vertices there, but are they all connected or are these separate triangles? (edited)
Avatar
Don't do that
Avatar
Avatar
DeanCode
i also was wondering how the bush thingy works - you said you can specify the vertices there, but are they all connected or are these separate triangles? (edited)
I'm not sure how the sfml handles them
Avatar
whats the name of it in sfml?
Avatar
But I think they are separate triangles
Avatar
also is there a way to make them with lua? or only with the scene?
Avatar
Avatar
DeanCode
whats the name of it in sfml?
sf::ConvexShape
Avatar
Avatar
DeanCode
also is there a way to make them with lua? or only with the scene?
something like: mnt.bush([1,2,3,..])
Avatar
Avatar
DeanCode
also is there a way to make them with lua? or only with the scene?
Only with scenes
Avatar
Avatar
ΛLΞX
sf::ConvexShape
okay thanks
Avatar
Avatar
ΛLΞX
Only with scenes
oh okay
Avatar
Avatar
DeanCode
oh okay
I have some moves to that direction
Avatar
Avatar
DeanCode
Also i think drag hook doesnt work properly, when i run it i get two different values:
oh yeah i had some issue with the dragging of the cube as i got random numbers in between
❤️ 1
09:25
not sure what the cause of that is
Avatar
Ok I may not respond today for a bit
09:37
You can ask something, but I will answer later
Avatar
Avatar
ΛLΞX
You can ask something, but I will answer later
Yeah no problem - enjoy your day 👍
Avatar
Avatar
DeanCode
Also I have no idea why you want to add 3d support when 3d already works ^^ - but yeah has some obvious issues like the faces being visible on both sides and them having some z-fighting for unknown reasons
You will be able to import complex 3D models with textures and skeletal animations
19:34
Sticker
19:34
At least I want to do that
Avatar
Avatar
ΛLΞX
You will be able to import complex 3D models with textures and skeletal animations
you have a library for that?
19:34
because i once tried implementing it myself and it was not fun xd
Avatar
Is there a way to get all entities in the scene?
Avatar
Yup you can
10:17
But I can't remember the function name
10:17
My wife is washing head now
10:18
I think I'll be able to lookup the source code for a bit (edited)
10:19
@DeanCode sorry for ping
10:19
ents.list()
10:21
That's kinda sad that my wife doesn't want me to code at the weekends
10:22
But she does that for me to relax from my work
10:22
Still kinda sad sometimes
Avatar
Avatar
ΛLΞX
ents.list()
thanks
Avatar
No problems
10:25
Sticker
Avatar
Please add a startup argument for fullscreen, im unable to take screenshots on windows when it is in fullscreen 🥲
Avatar
Wait wait
10:37
Did I build the engine in the window mode? (edited)
Avatar
no no its in fullscreen
Avatar
Wait wdym then?
Avatar
i mean like a toggle to overrule fullscreen/non fullscreen
Avatar
Aaahh
10:38
I have some troubles with it
10:38
You can have a togglable Fullscreen
10:38
You can make it rn
10:38
With Lua
10:38
But it will break a lot of stuff on toggle
Avatar
Avatar
DeanCode
i mean like a toggle to overrule fullscreen/non fullscreen
because for some reason im unable to take screenshots on windows when im in fullscreen - windows+shift+s doesnt show up the snipping panel
Avatar
Avatar
ΛLΞX
But it will break a lot of stuff on toggle
oh okay
Avatar
Interesting
Avatar
im also unable to escape to window's start menu when pressing the windows key like it is with many other games that run in fullscreen
Avatar
Avatar
ΛLΞX
But it will break a lot of stuff on toggle
And what is interesting, it will remove some hooks for some reason
Avatar
Avatar
ΛLΞX
And what is interesting, it will remove some hooks for some reason
lol thats weird
Avatar
Avatar
DeanCode
lol thats weird
Yeah
10:40
That's why I didn't use it
10:41
Need to find the reason
10:41
First
10:41
But the function is already on the engine
10:41
And accessible with Lua (edited)
Avatar
I also have problems with loading shaders and mnt.Text on windows, i think maybe its duo to the file's encoding being different on windows? (It should say "Hello World after 1sec" but it just prints (everytime different) random invalid characters and sometimes crashes with the message in the first image) (edited)
Avatar
Avatar
DeanCode
I also have problems with loading shaders and mnt.Text on windows, i think maybe its duo to the file's encoding being different on windows? (It should say "Hello World after 1sec" but it just prints (everytime different) random invalid characters and sometimes crashes with the message in the first image) (edited)
Windows as always
10:45
Dl8ZBvCUYAApq8T
10:46
yeah
10:46
vsc says the file is utf8 (edited)
Avatar
Time to take lpwstr out of pockets
Avatar
Avatar
DeanCode
vsc says the file is utf8 (edited)
Yeah time to hassle
10:47
But that looks funny (edited)
10:48
No problem if I post it to #media ?
Avatar
Oh god it's getting better
Avatar
Avatar
DeanCode
Click to see attachment 🖼️
i get so many interresting looking ones xd
Avatar
It's evolving
Avatar
yeah lol
Avatar
Avatar
ΛLΞX
No problem if I post it to #media ?
and sure
Avatar
Thanks
10:49
I even forgot that It's bumping my server automatically
10:49
#console
10:50
krovostok
Avatar
yeah works rly reliable
❤️ 1
Avatar
Avatar
DeanCode
Click to see attachment 🖼️
Waaait, does that mean that even wine is more stable than the real windows lol??
Avatar
Avatar
DeanCode
Click to see attachment 🖼️
i havent tried this addon with wine yet but i will try
Avatar
Avatar
ΛLΞX
Waaait, does that mean that even wine is more stable than the real windows lol??
yes and no - the loading of shaders work on wine but the font sometimes still is wrong and crashes the game sometimes too
Avatar
Interesting
Avatar
It would be great if instead of debug.showLog(); there was a setter so that you can disable it again, sth like debug.setEnabled(bool). It would also be useful to have a getter like debug.isEnabled() that way you could implement your own debug visualisations.
MC_emerald 1
Avatar
Avatar
ΛLΞX
ents.list()
I only get these two when using ents.list()
11:06
Does that mean that Text and Sprite etc are not considered as entities? How would you get a list of entities including them?
Avatar
Avatar
DeanCode
Does that mean that Text and Sprite etc are not considered as entities? How would you get a list of entities including them?
it shows only cobjects created with classes
Avatar
hm so you cant make your own scene view similar to unity with the current system 🤔
Avatar
Avatar
DeanCode
hm so you cant make your own scene view similar to unity with the current system 🤔
nope
11:09
but thanks for the idea
Avatar
Loading a different scene doesnt unload existing objects in the scene? scene.load("empty.scene");
11:13
Is there a way to do that?
11:13
like an argument for instance: scene.load(name: string, unload: bool) (edited)
Avatar
Avatar
DeanCode
Loading a different scene doesnt unload existing objects in the scene? scene.load("empty.scene");
exactly
Avatar
Avatar
DeanCode
like an argument for instance: scene.load(name: string, unload: bool) (edited)
you need to clear everything
11:20
with lua.clear func or smth
11:20
i can't remember
Avatar
oh yeah lua.clear
11:21
but why lua.clear and not scene.clear?
Avatar
idk i just was like yeeeah lua goes brrrrrr oh no i have a problems with cleaning my memory goosh jeeez why did i messed up with pointers uugggaaagh i need a function to remove everything lua related except for the hooks, i'll name it lua.clear, seems logical uuuaaagh (edited)
11:23
thats kinda story
Avatar
lol xd
11:24
also what do you mean remove everything lua related except for hooks?
Avatar
except for the global hooks
11:25
not those that are class dependent
Avatar
is there a way to clear hooks?
11:26
global & entity hooks
Avatar
you can't clear global hooks
11:26
:D
Avatar
i see
11:27
also what is the drawing order of the sprites? is it sorted by layer?
Avatar
yup, it is sorted by layer
11:27
if the layers are the same for every sprite
11:27
then it may flicker
Avatar
also do you cull back faces?
Avatar
for now - nope
Avatar
pls do so
Avatar
sure
Avatar
would fix my cube xd
11:28
lua.clear did fix the flickering though
11:29
Avatar
what is createCircle?
11:30
krovostok
Avatar
oh thats not related to the cube
11:30
i was just testing making a dragging system
11:30
so that you could make windows like imgui
Avatar
im really shocked how you managed to push that engine
Avatar
because i wanted to make my own scene viewer - but i cant get all objects so the idea doesnt rly work out so well xd 🥲
Avatar
Avatar
DeanCode
so that you could make windows like imgui
i can work on the imgui drawing (edited)
11:31
with specific hook in the rendering thread
Avatar
also what is setRef in FlexibleClass used for?
Avatar
it sets the internal reference to the lua object
Avatar
okay
Avatar
Avatar
DeanCode
It would be great if instead of debug.showLog(); there was a setter so that you can disable it again, sth like debug.setEnabled(bool). It would also be useful to have a getter like debug.isEnabled() that way you could implement your own debug visualisations.
17:06
Ryukosip
Avatar
Avatar
ΛLΞX
Click to see attachment 🖼️
Thank you! 👍
Avatar
and isEnabled is working too (edited)
Avatar
@DeanCode
19:05
19:05
19:05
cersmirkturtle
Avatar
that is amazing 🙂
19:11
thanks for adding this
Avatar
Avatar
DeanCode
thanks for adding this
Its raw as hell so
19:12
There's still a race condition
19:12
That I will need to fight with
19:12
Cuz the single Lua state is not capable of multithreading
19:12
aquacry
Avatar
what is it?
Avatar
just drawing
14:12
hehe
Avatar
Avatar
DeanCode
what is it?
he-he
14:17
ughm ok
Avatar
Avatar
DeanCode
what is it?
Avatar
Avatar
ΛLΞX
Click to see attachment 🖼️
Back and shoulder
Avatar
Avatar
014
Back and shoulder
yes you're right
Avatar
i might have asked that already but is there a way to unload screen shaders?
Avatar
nope
Avatar
i see
08:03
what are all the functions named available in imgui
Avatar
i do not recomend you to use imgui for now
Avatar
oh okay 😦
Avatar
yeeeah, the reason is, i need to call imgui functions every frame
08:06
but i can't do that cuz i'm calling a lua function that is stored in the luastate
08:06
that does not support multithreading
08:06
so
Avatar
i see
08:07
Avatar
i can ofc separate them
08:07
and make another luastate
08:07
but you will have no context on what's going on in the game at all
08:07
=(
Avatar
Avatar
DeanCode
i might have asked that already but is there a way to unload screen shaders?
what is the name of the file that loads the current screen space shader?
Avatar
crt.gls
08:08
and shadows.gls
Avatar
in the shaders/ folder?
Avatar
ok thanks
Avatar
you can replace the main.lua file
08:08
and load the main menu scene
08:08
so the game will run as a regular game
08:08
but without shaders
Avatar
@DeanCode sorry for a ping
12:52
im working on AI tiktoker
12:52
do you want to see it?
Avatar
oh sry was busy (edited)
Avatar
no problems bro
13:06
=3
Avatar
Avatar
ΛLΞX
im working on AI tiktoker
Wow, man
12:37
What is it?
12:38
It creates a video and posted it by itself?
Avatar
Avatar
014
It creates a video and posted it by itself?
With prompt or is it also automatic?
Avatar
I love how easy it is lol
08:33
Avatar
Would be nice to have an error message inside the Mental Console when a sprite, font etc tries to load an asset that doesnt exist
Avatar
Avatar
DeanCode
Would be nice to have an error message inside the Mental Console when a sprite, font etc tries to load an asset that doesnt exist
Oh that would be cool
Avatar
Also its a little strange that setRectPos supports both overloads setRectPos(int x, int y) and setRectPos(mnt.vec2 pos) but setRectSize only the setRectSize(int w, int h)
10:43
nvm
10:43
i guess setRectPos only supports the mnt.vec2, right?
Avatar
I'm not sure, I started adding overloading, but I'm not sure if I added it everywhere
Avatar
yeah would be nice if it were consistent (edited)
Avatar
Sure
MenheraThumbsUp1 2
10:44
Thanks for noticing
10:46
74.94 MB
10:46
Btw if you wanna play that android game where you need to shake your phone, here it is
10:46
It's large because of music in wav format
10:47
I need to compile OpenAL and other libs for Android to support mp3
10:47
Will do that later
10:47
And lock the screen rotations EJCgJ8mXYAATwOE
Avatar
i will try it out later 👍
10:50
EJCgJ8mXYAATwOE
Avatar
im not sure if that is sth related to the ts2lua converter or if that is something the luabridge runtime does, but when i create a mnt.sprite() without assigning it to a variable it doesn't show up the sprite, assigning it to variable shows it test = mnt.sprite()
10:53
do you have that as well?
Avatar
Yes I have that as well
Avatar
is that on purpose?
Avatar
Maybe it's because of garbage collector
Avatar
yeah i think so too
Avatar
I had some problems when implementing garbage collection,maybe that's related to it
10:54
I had garbage collection on some hooks like collisions and etc
10:54
And the sprites are just disappearing if collide
10:55
But they should've been
10:55
shakal
10:56
Oh and if you have a local variable that is not in the class or smth, it may be removed too
Avatar
For some reason i get a segmentation fault when adding a physics hook global.addHook( "physics", function() end )
Avatar
Avatar
DeanCode
For some reason i get a segmentation fault when adding a physics hook global.addHook( "physics", function() end )
Try to write something to the function
Avatar
Avatar
ΛLΞX
Try to write something to the function
yeah its the same
Avatar
Oh, ik why
Avatar
and fixed_think doesnt work at all MenheraThink1
Avatar
There's a broken iteration over the global physics hooks
Avatar
Avatar
DeanCode
and fixed_think doesnt work at all MenheraThink1
or i am misunderstanding what it is used for (edited)
Avatar
I fixed it in the lates updates (edited)
11:43
But didn't share it
11:43
Wait I'll send you the latest binary
MenheraBeg 1
11:46
Why can't windows mount ext4
11:46
aquacry aquacry aquacry
Avatar
Avatar
DeanCode
or i am misunderstanding what it is used for (edited)
Sorry it's a bit "not Sonic game"
Avatar
Avatar
ΛLΞX
Why can't windows mount ext4
😦 dont worry doesnt need to be now
Avatar
oh thanks ❤️ ❤️ ❤️
Avatar
Avatar
DeanCode
😦 dont worry doesnt need to be now
I was on windows to download gta5
Avatar
Avatar
DeanCode
oh thanks ❤️ ❤️ ❤️
It's a shakeit game
11:50
im not sure why would you need that on PC
11:50
but the engine is multiplatform hahaha
Avatar
would be funny if you could shake the window on pc
11:51
but there is no windowed mode right?
Avatar
Avatar
DeanCode
but there is no windowed mode right?
You can turn it on
11:51
Via launch argument
Avatar
also a --help option would be nice
Avatar
Yeah for sure
Avatar
Avatar
DeanCode
would be funny if you could shake the window on pc
I'm planning to merge the gamepad sensors with the android ones
12:00
So you could write code once
12:00
For multiple platforms
Avatar
Btw what are you working on?
12:10
I'm just curious
12:10
pogfishanimated
Avatar
rewriting the tetris game (edited)
12:16
also i noticed that the sprites sometimes flicker weirdly
12:16
i tried setting setInterpolation to false, that reduced it i guess but sometimes they are still flickering
Avatar
Avatar
DeanCode
i tried setting setInterpolation to false, that reduced it i guess but sometimes they are still flickering
Ik why it happens
12:20
I'll try to fix that
Avatar
I'm so happy that the MentalGames is alive Dl8ZBvCUYAApq8T Dl8ZBvCUYAApq8T Dl8ZBvCUYAApq8T
❤️ 2
MenheraThumbsUp1 2
Avatar
yeah i also hope it will stay alive 4ever 🙂
13:54
btw it would be nice to have an align option in mnt.text something that is very common is that you want to center the text or align left/right, doing it manually is a lot of work 😦
Avatar
Avatar
DeanCode
btw it would be nice to have an align option in mnt.text something that is very common is that you want to center the text or align left/right, doing it manually is a lot of work 😦
Yeah, everytime when I need to center a text, I'm doing sht like SetPos( text:getBounds().x/2, 0 )
Avatar
yeah yeah
Avatar
sprite:remove() doesnt seam to work (same for text)
Avatar
im not sure but i cant get fonts to work inside of addons, i can use the ones from the Sonic game but when i try to use my own (still the same fonts from sonic but different name and inside the addon folder) i only get very tiny cubes
Avatar
Uhmm
Avatar
Avatar
DeanCode
sprite:remove() doesnt seam to work (same for text)
For real??
14:51
Strange
Avatar
Avatar
ΛLΞX
For real??
not sure if its the ts2lua but it definetly gets called and nothing happens MenheraThink1
Avatar
I'm sure I had that in a sonic game in a dash part
14:51
Hmmm
Avatar
i mean i remember it working in my 2d minecraft (edited)
Avatar
Maybe I broke something shakal
14:52
I'm not sure
Avatar
is there a way to enable the on screen controllers for android on desktop for testing?
15:18
also are they automatically enabled?
15:24
Text is overlapping in windowed mode
Avatar
does screen.addShader not work right now?
Avatar
Avatar
DeanCode
is there a way to enable the on screen controllers for android on desktop for testing?
Yes you can
16:33
But there's only one left stick and that's all
Avatar
Avatar
DeanCode
does screen.addShader not work right now?
Waaait
16:34
I can't look it up rn 😭
Avatar
Avatar
DeanCode
does screen.addShader not work right now?
The addon crashes on an old build that;s on the website
06:06
lmao
06:06
i mean, i fixed some issues that introduces crashing
06:06
EJCgJ8mXYAATwOE
Avatar
things to checkout: ___________________________ screen.addShader sprite:remove() Sprites flickering Add --help argument Allow to get window position global and entity fixed_think setRectPos / setRectSize overloading Error messages when sprite, font etc tries to load an asset that doesnt exist finally mess with saving (edited)
Avatar
@DeanCode sorry, shaders are not worked for you?
16:16
i mean screen space one
Avatar
Avatar
ΛLΞX
i mean screen space one
not working for me last time i tried
Avatar
Okie dokie
16:26
Yeah it's not working
16:27
Will try to fix it today
Avatar
I was wondering if you are considering adding 3d rendering support with proper Orthographic/Perspectiv camera and physics for 3d objects (edited)
19:27
also some system for making an overlay ui, when i was trying to make a gui with sprites that always stay at a fixed position on the screen, they moved with the camera, so i had to manually with code fix them at that position which worked but causes flickering (edited)
Avatar
Avatar
DeanCode
also some system for making an overlay ui, when i was trying to make a gui with sprites that always stay at a fixed position on the screen, they moved with the camera, so i had to manually with code fix them at that position which worked but causes flickering (edited)
You can use screen cords toggle
19:34
I can't tell now exactly how the function is called
19:34
But it's there
Avatar
Avatar
DeanCode
I was wondering if you are considering adding 3d rendering support with proper Orthographic/Perspectiv camera and physics for 3d objects (edited)
Yes, but I'm more and more into raylib instead of sfml
19:35
Because I will die implementing skeletal animations and multiplatform 3D rendering
19:37
And raylib have webassembly out of the box
Avatar
Avatar
ΛLΞX
I can't tell now exactly how the function is called
let me know when you know what the function is called 👍
Avatar
is this server for a Game Engine?
Exported 507 message(s)
Timezone: UTC+1