#⌨coders-cave
1 messages · Page 32 of 1
🤓
what is this a website ?????????????????????????????
i guess it was made by someone localy just to make meme
bruh ngl i did something like that to a client's website
💀
i accidently used && between the condition for the password and email
and you're not supposed to do that but how would i know
so you jsut need the right password to login and it doesnt matter what email you use
There’s no way you accidentally told them the username though
And tbh, if every password is unique, it’s probably safer
Only one guy can have password1 for a password
how hard would it be to do a gta like map zoom in on a sprite and u take controtl of them and now instead of a 1 player god game it becomes a 20000k multipalyer sprite game where veryone ahs there professions and building the ciurrecny and magic and otehr systems to make
i think its doable if someone had 50 million dollars to pay lol
this is not a worldbox related programming channel
try #🔧modding-talk
just sayin, this is the one we chill out and show off really cursed code, that one's more specifically worldbox stuff
Soon(rn I'm figuring out godot language or wahteva that is)
GDscript
Yes
I don't really know it tho
No worries, later I'll ask stuff about C# and JavaScript
@barren shale remember me?
NYEHEHHEHEHEH
papyrus moment
anyway, I'm currently wrestling with a programming problem that is very vague
it's not small enough to ignore or big enough to easily diagnose, I'm not sure if it's a floating point precision error or something wrong with my code, and for my hobby project it's very important that I solve it
and I'm not going to share it here to spare you all the stress
How do I know how to make my code more efficient
I had a force on my horizontal vector, and one on the vertical, then I added one on the vertical, and it got all jittery
And one time I had some code in regular void update that was super laggy, but when I changed it to fixed update it stopped jittering
Or do I just mangle my code until it works
least dystopian game idea suggester
they really think 20 million players are gonna play the game at the same time and think 20 million players are even possible to handle
well i mean its possible if you do chunking
hmm
but that's literally called an RPG
this
👽
💀
dudes be like: "it's ok if it's unreadable, as long as it works it's fine"
the code:
one map 20 million players is impossible to handle currently
no matter how much chunking you'd do and how much you shard your database
its just too much
there are games that can handle millions of players but not in one map
the player's pc would crash too 👽
i mean the client side of the thing is the easy part tbh 😂
but you need 50 supercomputers to run that server
I mean if you have a computer with like 10 million threads and terabyte internet speeds I'm sure it's trivial
well
probably not
joining these threads would require a thread too stronk
what the fuck is this
Im not the one to judge unreadability but goddamn what situation requires this
this is probably not hand written
as it is more than 35k lines
so probably some sort of json save file
What if they had no input and just saw a picture of the game 
Game is just look at a picture
what
It wouldn’t be a very fun game
But it could hold 2 million people probably
i meant like elaborate
Congratulations on learning what television is I guess?
is it normal for unity to take ages to load
for an empty template
i didnt keep track of the time but
its been like an hour
probably 9
nvm it started to actually do something
for me it takes 1 minute to open something, and like 5 to open a new one
my laptop's like 3-4 years old
maybe 5
but it's pretty good
it's probably just the general quality of your computer
GPU shouldn't have much to do with it
also is your computer high, low or mid-end for 9 years ago?
@tulip quest @tulip quest @tulip quest @tulip quest @tulip quest @tulip quest
yes?
you have declared rb privately and not set rb to anything
if you, say, set rb to the rigidbody of an object it'll work
i followed a tutorial 😢
i wanna do that
to set rb to something you need either:
- An object reference
- A public variable to set rb to
let me check
(I don't know off of the top of my head, which is one reason 2 is easier)
hang on a second
you can probably just use rb = GetComponent<Rigidbody2D>(); or similar
I'm not sure exactly what would go in the <> though
actually I think I got it right
maybe the capitalization is different, but that should be it
2nd way didnt work
well, I didn't finish describing it
it's kinda easier shown than told tho
lemme open stuff up
didnt work
it might be rigidbody2d or RigidBody2D or something like that instead
might as well check 2 or 3 different capitalizations
no i checked
I'm working on showing way #2 properly
when i capitalize differently it says namespace not found
alr
let me show you stuff
after doing the first step I had in way 2, something changes on the script object
it might look like this, for example
oh
now i have it
and i changed it
andddddddddddddddddddd
andddddddddddddddddddddd
yay worked
[SerializeField] public Rigidbody2D = rb;
in the script
then i simply go to the editor and changed the reference
nice
that's what I was about to explain
now I'm curious about if I can get the first way to work for me
yep, I got it
show
I got it happening in 3d but it should be no different
private Rigidbody rb;
rb = GetComponent<Rigidbody>();
done
its 10x easier to make an object move in unity than godot wow
true
apparently if you understand godot it's easier, but that's a bit of a barrier to entry
no wonder you use the android verson of worldbox instead of the steam one
theres a flag to make it use vulkan instead but when i wanna playtest it just uses opengl and crashes the whole thing
damn
lol
I remember the computer I used to have to use
back in the day I'd try and get it to run roblox and it would lag so bad above minimum graphics
not even on hard-to-run games lol
bro the unity documentation is so shit
how large is the sprite for a tile is
100x100?
Depends on pixels per unit of sprite
ok then 64x64 should work
but it leaves massive gaps
128 worked tho
but now it overflows
wtf
bitch wha
its not supposed to overlap
nvm just change PPU of the sprites to your resolution and it will be fixed
What
So, base is 100 x 100 i guess
no no
the sprites have a property named "Pixels Per Unit"
basically if your sprite is 64x64 then you set it as 64
idk why we even have to set that
Yes, i am talking exactly about it
For pixel games for example
Wb have 1 ppu
for all sprites
Or almost for all
it said pixel size was automatic lol so i got mislead
I was following a wall slide tutorial because my character was sticking to a wall if you input a horizontal input, but it didn’t work. I think the object is phasing through the wall a little bit, and it thinks it can stand on it.
I don’t really need wall sliding, I just don’t want it sticking to the wall
The tutorial clamped the velocity, but it wasn’t working because a y velocity of 0 wasn’t clamped

ok
That's funny
real
float fov = Camera.main.fieldOfView;
fov -= Input.GetAxis("Mouse ScrollWheel") * 10f;
//fov = Mathf.Clamp(fov, minFOV, maxFOV);
Camera.main.fieldOfView = fov;
```???????????????????? why this not working? i have camera component and theres no errors too
im trying to zoom in and our using scrollwheel
nvm fixed it

somehow check if the wall the player is in contact with is climbable
then make the player go in a "climbing" state which stops y movement
thats my solution
no code cuz im learning too
I don’t think unity has that
you can probably make a tag to put on climbable walls, and if you touch a wall you can check if it has the tag
I have no idea how those extra words got in there
Oh
I can detect when it’s on a wall and when it’s on the ground
But Im still having trouble fixing it hitting the wall and changing its y velocity to 0
I’ve tried taking away the ability to move horizontally in one direction once you get too close to the wall, but you can still run into the wall quickly and shorten the jump
I don’t really care what happens on the descent, but I really don’t want the jump to stop early if the player doesn’t want it to
Nvm, I just made it stick to the wall 
My game has been reloading domain for 40 minutes
Wdym by load?
Not run
How it can run if it is not attached?
😔
game engine bullshits
wait theres more than one type???
Yes, but i am not about it
No script can run automatially if you didn't coded it by yourself
What's your issue?
My unity engine has been loading for 18 hours
And when I try to click on it, it just has a loading icon
uh
I mean the mouse turns to a loading icon
You sure you haven't some editor scripts on starting scene?
I don’t think so
I coded it all myself and I don’t know what editor scripts are
Plus, even if I did, I can only edit one script because I can’t click anything in unity
But you can in folder
Editor scripts runs in editor without need to press play button
If you don't know about them, i guess it is not your issue
Since when your unity started acting like that?
22 hours ago 
cancer inducing brain damage
(gives u it not cure ut)
25 hours 
I can’t close the tab either because there’s a loading icon instead of the mouse
try task manager (if you're on windows)
ctrl-alt-delete opens a menu from which you can open it
then you can select the unity application and hit end task
this method is even more reliable than alt-f4
I mean what last change you did in your project?
Follow this guide to learn how to install mods:
https://gamebanana.com/tuts/16262
@elfin cargo
shame, that might get in the way of my plans to cover france
just use like 3-4 pdfs
I don't want to give them the victory of making me waste even more paper
My 145161 square kilometre large pdf image is still printing 🙄
Who thought that that much would be enough? 
They really need to make better printers smh
Luckily it’s just Acrobat slop
Also, 0/10, should be a power of 2.
I couldn’t survive without a PDF that covers the surface of the sun
Yeah, understandable. 
why is adobe limiting the size
like i get it if its 10m
or even 4m
but not 15 million kilometers
anything that requires you to work with low level libraries/access memory without having your compier or interpreter scream at you
nah just compiler nvm
I love c++ without all the OOP parts
They are ok but idk
Scream? What does that look like??
Probably something like, checking if there was ground if you pressed the down arrow
It’s fixed now
I love the pdf file format
i discovered the unity particle system
trying not to use c++ purely for std::vector and new
isnt new just malloc without all the parts you rewrite everytime

zig/rust are the new c/c++ anyway
Hi
Hi 
For what
hi
Beta testers are chosen by the developers
You don't really apply for it
You could join their community if you want to test it
It’s much more likely than if you just sit around waiting for someone to contact you
You gotta become an active member of the community and contribute a lot to become a beta tester
I’ve been messing with scriptable objects in unity, and I was wondering if there was a more efficient way of creating projectiles than just instantiating a prefab
or become a translator 
My enemy is phasing through the floor
When I look at the inspector, it looks like his box collider disappears randomly
This what he looks like >
I didn’t even change anything inside of his scripts
opens Duolingo for the first time in 3 months
When I made clones to see how many bullets I could make, 3 clones fell through straight away, and two clones stayed
But then they fell later

This isn’t because I made clones though because it falls through even when I don’t make them
how does one achieve the modder role?
Mod?
i did that
Can’t help past that then
Step 1: Read the description of this channel to realise that you're asking in a completely wrong place.
Step 2: Read #📕information message too, where you'll find out that getting the modder role requires you to apply to a mod manager on this server (either me, @north dune, or @torpid isle ) in DMs. When you do that and meet the requirements, you'll receive the role relatively quickly!
If you have any further questions, let's please move this to #🔧modding-talk , #🚑help-chat , or DMs to avoid filling this channel with more topics that it's not even supposed to focus around!
Yea Il pass
Apparently this was due to a child of my player
I don’t know why it was deleting the collider though
What
E
try a modding channel, not the programming channel specifically for non-worldbox stuff
return;
I wanna make games but am too scared to actually switch to a game engine, instead confining myself to the MonoGame Framework
The struggle
being scared of advancing
It’s not like it’s a commitment
What is that?
Switching game engines
No what is a commitment
do you not know what a commitment is?
Commitment is when you must choose and you will be locked into the choice
you should at least know the one in the dictionary, which isn't that hard to access
Ooohhh
I don't have a dictionary
well, there are a good few online ones
and I guess everyone has a first time with a word
Yea...

bro is your first message in this server calling someone stupid 💀
His pfp suggests he is just liking the emoji
😦
I just looked it up, and it seems to me like a script that anything can access, but there is only one, so maybe it can be used to store data, or need to make sure everything is exactly the same.
Like a scriptable object in unity.
k
its like using 1 notebook for all of your data
you read and write in that one singular object
done
im a coder and live in a cave
Proofs?
@orchid frigate come back
boy is this the discord for you
does your internet travel through your water supply? I know some coders-cave people will put reflective sheeting around the hole in the stone where their water comes from, and then puts a badass laser at the top
That right there sounds like peak internet connectivity. 
2012 worldbox
Cool
Imagine not having a VC funded company host your website
Basically taking money from rich people to pay for the €4 server in Germany instead of doing it yourself
Anyone want eg gthing
It turns numbers into strings
That look cool
I explained it more in #🔧modding-talk
<!doctype html>
<html>
<title> gaeisbad </title>
<h1> no homo </h1>
<p> unsin ur homo </p>
</html>
does that even work without header or body
Ooh is their a tutorial I didn't know we can mod this game
You can but I don’t think this is the right place

a
Oh
I just got a new laptop, I downloaded unity, and I can’t find my projects
I have the same account
do you have your old one? I'm pretty sure you need to store projects in a place that syncs between computers if you don't want to manually move them
I do have the old one
does it work still?
Yes
It’s on a not portable computer and the other one is portable
So I was wanting to switch
alr, it should be pretty simple
you just need to find where you have your projects stored and transfer them using a usb or email or something
personally, I send files using bluetooth, but only because I know how
alright
local tool = script.Parent
local model = tool.Model
local poison = model.poison
local sound1 = tool.drink
local sound2 = tool.ragequit
local trigger = tool.Trigger
local activated = tool.Used
function onActivation()
if activated == false then
print("you idiot")
poison:Destroy()
trigger.CanTouch = true
end
local function kill(hit)
wait(0.1)
activated = true
local character = hit.Parent
print(character)
local humanoid = character:FindFirstChild("Humanoid")
print(humanoid)
if humanoid then
sound1:Play() -- Play the first sound
wait(3)
humanoid.Health = 0 -- Kill the player
sound2:Play() -- Play the second sound
wait(3)
tool:Destroy()
end
end
trigger.Touched:Connect(kill)
end
tool.Activated:Connect(onActivation)
Can you guys see any issues with this script? I'm new to coding so the script doesnt work and I cannot see the issue.
What isn’t it doing?
Also, if the whole thing isn’t working, is there a debug log?
try using the output as it should give you an error
i got it working
• There is no player for this server
!rank
!rank
@edgy flare do !rank in #🤖bot-commands
Not here
I didn’t even see that
fair
see its accurate
:O man called an api
yes
!rank
Bot commands should be used in #🤖bot-commands , not here.
Me literally every morning/evening when traveling to/from work/school:
I dont watch anime
Hihi
!rank
!rank
Sorry wrong channel
Idk if this is the right place to say this, but the tsar bomb in English says “Tsar Bomba”
I'm not sure where you would say that, but here isn't the right place. It's understandable you've made that mistake though, several people have done it for things far less relevant (like checking rank lol)
there are literally 7 instances of checking something not even relevant to programming right up there, so you're a lot more relevant
That's intentional. The world's most powerful nuclear weapon created and tested is called Tsar Bomba which is why it's called Tsar Bomba in the game as well
Also this is not the right chat for this
My bad
!rank
!rank
Yas
Use this command in #🤖bot-commands , not here.
oh ok
Same applies for you, @dusky sky .
Sorry i didnt know where that channel was
It's all good, just don't make the same mistake again!
person who uses bot command under this message is a dum dum and should have gone to #🤖bot-commands
Treu
^^ dum dum
Idk if it's a coding topic but I bought a framework 16 recently
I mean, it does give you a lot of control over your hardware in a coding kind of way due to aspects like the built in keyboard using QMK.
Seems to be a mirror of usevia.app, same page I also use to configure my keychron keyboards.
It's a fork yeah
I think it has some changes to work with framework 16
Would be a pretty cool project tho to try and make a configurator desktop app for the keyboard
It's nice though that it just works with the built-in keyboard. Even more convenient than I would've imagined tbh.
~bt
I hate integrating front and back ends so much
I'd remake the backend in Js if the docs aren't next to useless
that's why i use a full stack framework
makes it very easy
heres a w move: put the frontend and the backend on the same thing
why does this look so shit
I was wondering how I should go about setting spawn points for enemies in unity
I am able to have one enemy but with different abilities and sprites because of how I made them
But it seems bad to just have many different enemies loaded at the same time
great question to ask chatgpt
git is currently giving me brain cancer
THE FUCK YOU MEAN "UNRELATED HISTORY"
THE REPOSITORY HAVE 1 FUCKING FILE AND ITS A README
for other people heres the solution:
git pull --rebase origin main
git push -u origin main
Great thanks this helped me so much
why would you do that
just fetch origin and hard reset
your way requires a useless merge and fucks up the commits history
but tbh git is fucked
it has too many unnecessary things
I’m sure ChatGPT will have the most efficient solution
someone on stackoverflow suggested me to do that so im blaming git itself 🙏
they do have the most efficient solution if it has been done a million times
Well then why can’t you tell me what it is?
If I can’t find it on the internet then it’s not gonna have tons of good resources
ChatGPT never has the best solution unless it's made extremely obvious over the web, but an answered prompt and an ability to bugfix goes a long way
even though the code it provides is best used as inspiration only
just try it bro
I’m don’t even want the code I can make it myself 
I just want to know what I should be doing
alright, let me finally try and help directly
is the problem you have that you can spawn enemies but don't want the whole map's enemies loaded in at once?
Yes
alright
Plus I’m not sure if I should instantiate them or not
I've got a bit of a solution
If you instantiate enemy spawn points when you load the map instead of enemy spawns, you can make them keep track of the distance to the player and spawn an enemy when they get too close. You'll need to make sure a spawn point can only have 1 enemy to its name, but it's not too hard to make
and if you don't want to instantiate spawn points, you can just make a single gameobject that keeps track of all spawn points
Hello world to my fellow coding bros
Never depend on ChatGPT
Its alright for basic stuff but it can also use depracated info
I don't know if people still use ChatGPT for actual coding anymore, at least not reliably
For free version anyway. You either get an outdated one or the dumber gpt-4o-mini
That one can't do shit except being annoying
If you're going to pay for the pro version, you can just use Anthropic's Claude 3.5
The outdated one used to be really good, but then they made it really fucking dumb
The entire reason chatgpt got popular was because it was actually good, now it's worse than the old stuff
like the old one was better than gpt4
Probably training it on garbage
training on itself lol
I think that was too early for that though, it was the chatgpt developers trying to make it more woke (best word) because it would sometimes spout stuff
+1 for this
claude 3.5 is much better at certain coding tasks than gpt-4o
Tbh anything intelligent that isn't trained not to have the mouth of a trucker is a corporal hazard and a lawsuit ready to happen
I'm still waiting for the day the numbers align just right for it to spout something absolutely outrageous
Hell yeah lol
ive got a complicated question that i have no idea on how to solve.. how would you rotate a point a certain DISTANCE on the surface of a ellipsoid? i could only rotate a degree with this: (ive already asked forums that did not solve it)
have you asked chatgpt?
yes
well if chatgpt couldnt answer this kind of question i dont think anyone can
but what i would do
😄 🔫
this function does not take a distance
well its a vector2 of latitude and longtitude, rotationangles, it only rotates degrees but i want it to rotate a distance
this was the best i could do
move* not rotate
but you want the point to stay on the surface of the ellipsoid?
yes
hmm just found this https://en.wikipedia.org/wiki/Vincenty's_formulae
Vincenty's formulae are two related iterative methods used in geodesy to calculate the distance between two points on the surface of a spheroid, developed by Thaddeus Vincenty (1975a). They are based on the assumption that the figure of the Earth is an oblate spheroid, and hence are more accurate than methods that assume a spherical Earth, such ...
well it only works in certain cases tho :/
the spheroid has to be oblate
using UnityEngine;
public class EllipsoidMover : MonoBehaviour
{
// Function to move a point on an ellipsoid in a specific axis direction
public Vector3 MovePointOnEllipsoid(
float a, float b, float c,
Vector3 initialPoint, float distance,
string direction = "x")
{
// Calculate the normal vector at the initial point
Vector3 normal = new Vector3(
2 * initialPoint.x / (a * a),
2 * initialPoint.y / (b * b),
2 * initialPoint.z / (c * c)
);
// Choose a primary direction vector aligned with the specified axis
Vector3 primaryDirection;
switch (direction.ToLower())
{
case "x":
primaryDirection = Vector3.right;
break;
case "y":
primaryDirection = Vector3.up;
break;
case "z":
primaryDirection = Vector3.forward;
break;
default:
throw new System.ArgumentException("Direction must be one of 'x', 'y', or 'z'.");
}
// Project the primary direction onto the tangent plane
Vector3 tangent = primaryDirection - Vector3.Dot(primaryDirection, normal) / Vector3.Dot(normal, normal) * normal;
// Normalize the tangent vector
Vector3 tangentUnit = tangent.normalized;
// Move the point in the direction of the tangent vector
Vector3 newPoint = initialPoint + distance * tangentUnit;
// Project the new point back onto the ellipsoid surface
float scale = Mathf.Sqrt(
(newPoint.x / a) * (newPoint.x / a) +
(newPoint.y / b) * (newPoint.y / b) +
(newPoint.z / c) * (newPoint.z / c)
);
newPoint.x /= scale;
newPoint.y /= scale;
newPoint.z /= scale;
return newPoint;
}
}
a, b, c are just the dimensions of the ellipsoid
you can replace that with a vector3
gonna test this real quick
its not working........
oh wait a minute i messed it up
and then move it in one direction by PI
i messe up the input
ahhh ok
well it moves in the right direction but wrong distance, the distance it travels depends on where it is on the sphere...
.
ok
if you make an ellipsoid with a radius of 1
fine
and moveit by 2PI
you should get the same point
make sure that the initial point is on the ellipsoid
100% is
???
2 x PI
its not
Vector3 vector = EllipsoidMover.MovePointOnEllipsoid(SphereSize.x, SphereSize.y, SphereSize.z, new Vector3(0, SphereSize.y, 0), Mathf.PI*2);
Spheresize = 1,1,1
what is the returned vector?
0.9875705, 0.1571767, 0
also weird
why is there 3 possible directions you can input
when you can only move in two if you want to stay on an ellipsoid
bruh, not every problem is to be solved with chatgpt
and this is absolutely not true
yes chatgpt is unreliable but dont say it like it wont help you a lot. its actually quite useful if you know what part of its code is stupid
chatgpt is simply just a tool
the idea that "if chatgpt can't answer it, nobody can" is ridiculous and easily disprovable
oh yeah thats false
chatgpt should be taken with a grain of salt
think of its responses as a guidance instead of the absolute truth
that's the point I'm trying to make, having it give you an idea of where to start is good but you need the ability to solve a problem yourself too
at the moment I'm trying to think about a solution to the original problem posed here, but it might not be solvable because there is no mathematical formula for the perimeter of an oval
I’ve solved all of these simple function problems with ChatGPT
I know it can’t solve everything but it can solve most of them
Never failed me at least with the right prompt
same
I can't believe I just read an argument where both sides said each other was right but only one victor could emerge so they continued to duke it out
this is a #🚑help-chat question
if it's general programming related, it belongs here. If it's Worldbox modding related, it's in #🔧modding-talk. If it's to do with Worldbox or this discord server, ask #🚑help-chat.
remind me whats the code to make globgolabglam in vidogames
https://www.facebook.com/share/v/JSxrEX6MtNwwFran/?mibextid=xfxF2i this video gonna make yall cry
See posts, photos and more on Facebook.
I am not logging into Facebook
No
It just how facebook embeds look like in discord
They dont show anything
But the login thing
It wants me to log in when I go to the page
Welp rip
Maybe better for you not to see the meme
I'm on data so I guess my IP is suspicious
Now I am determined
I do have a Facebook account but it won't let me login
Not in the motherboard:sob; 😭
is making scratch projects considered as coding?
I'd say so. What've you got to talk about?
scratch is designed to teach about coding
Scratch is where I started
Tbh it’s pretty great
Yeah block-based coding still is coding imo
Look up a video
For 5 minutes
Bam
You can code
Go outside without any precautions for virus’
coding is basically giving the computer every single instruction and details about something then it shits itself
just watch a beginner guide on something like c# or javascript
I wonder if it's easier to teach asm or python in 5 minutes
atleast hes smart enough to know that smh
Are you insulting my intelligence solely due to the fact that I make stupid jokes

And then saying atleast?
python
imagine trying to explain that ah is a container
tell them rax is a bunch of bits
for data that is pretty much solely numbers
Don't get them on decimal, they'll learn that after the 5 minutes
for python you just tell them to write an essay and filmanise it
make it look like it comes from a hacker movie and boom working python code
Lol
unless its those one line abominations or the string manipulation symbols
Just tell them ; counts as a new line
The one line abominations don't use ; ??!?!
In C they do
idk how they work in python I think it uses spaces and tabs and shi
nvm I dont think python can do one liners
I think interpreter in Python just pretends ; is /n
Python
I think that just writes individual bytes but instead of writing the bytes it uses random calculations
That's just a bunch of + str(1+1+1+1..)
explain that in 5 minutes
to a person whose work on a computer only includes word, excel and google
I could but I'm on a cruise and the Buffet is a 1 minute walk from the aft
Ah shit we are fucked
If that's their only experience don't even try
this is the most terrifying piece of python (or any other programming language) that I've ever seen
print("hi chat")
Ohhh I think I get it
you think someone might be mental enough to try to add first-person to the game? someone did that with the binding of isaac and turned the game into an FPS
they did it in a cool way where the walls were made up of small slices of part of the texture and copy-pasted to look like a 3D wall
and then the floor is just a flat color


i wanna post the cool macos rice i made in bash and c but no image perm 😭
need to be lvl 10
then i guess i need to start talking again
Mod
@feral bramble hello
ello
How are you doing?
doin fine
Coding yes yes
Yes yes
Ah yes, most readable lamda expression in c++ : cpp const auto it = std::find_if((*struct_it).vars.cbegin(), (*struct_it).vars.cend(), [&](const auto& var) { return std::visit([&](const auto& element) { return element.name == expected; }, var);});
wut
I would have never thought to actually use something like this abomination
but I did, and I dont know how I feel about it

What langage is used for coding Worldbox ?
Wordlbock
check it in game
Pretty sure it's C#. Or at least, that's what I've found in mod files, and I imagine the actual game works similarly.
maybe I'm wrong, but if it's something else it'd be good if somebody else explained it here
Its probably c# or java or both
average programmer naming scheme:
Bitlocker
Drive
Encryption
Hard
Drive
Con
Fi
G
I know, and it's terrible
you can't really do much better for naming it, but it's so vague without being told
the cfg part of this is reasonable but otherwise this is kinda stupid
Prepbde
why is that better
more readable
i dont think the point is for it to be readable
the reason it's a bad command is because it's unreadable
you will not know the meaning of 99% of commands without reading the docs
so doesnt really matter
the reason commands and things are named as they are is to give you an idea of what the command does when you re-read the code you've made
yeah its for memorability
prepbde tells you that it prepares/configures a bde (bitlocker drive encryption) while bdehdcfg doesn't
but you could also argue that prepbde doesn't include "hard drive"
you pretty much need to know the command well to remember what it does
prep bitlocker drive encryption
drive as in hard drive nvm dumb
wait actually good point
i mean i agree its stupid
but there it cant really get much better
its a systemitical problem
and programmers love backwards compatability so they wont change it
backwards compatbility is the dumbest thing ever
I think it's just that someone at microsoft decades ago named it badly and nobody wanted to break everything with an update
except when there's military and government programs involved that if they break (and they will upon update, without backwards compatibility) there will be problems
you technically can go without updating in that case, but a lot of the time very useful services are developed for later versions of OSes and stuff that would be quite efficient to fit on the same machines as the older stuff, except for a lack of forwards-compatibility (which is much harder)
fsck is superior
brainfuck
i think i still have the code for the brainfuck parser i've built
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
here if anyone wants to interpret some brainfuck
At work we have everything one 2 versions backwards compatible because enterprise customers are bad at updating their software and Imo that's sensible but if something is backwards compatible for an infinite amount of versions is stupid
well if its just 2 versions then its not really called backwards compatible
its just that you dont change something for 2 versions
but when you dont change anything for ever that's backwards comptibility aand yeah i agree its trash stupidd
makes programming languages bloated or bad after 10 years
im just ranting because i used Zig and its so good and C# will never be good like it because of systematical things that can't be changed now 
C# is different or similar to c++ ?
Similar syntax
But the biggest difference is that the memory is managed for you in C#
And there are no pointers
all the c-based languages (C, C# and C++) share a lot of things, but they do function differently to a degree that's pretty important.
Okay thanks you all !
I made one in replit in school
I kept adding more things to it lol
"naw bf needs the ability to syscall too!! Wait but how do I do registers? What do I do if I'm targeting bare metal?"
Then my school blocked every website that wasn't on their list of whitelisted websites and the teachers had to throw every research project out the window
bruh
didn't even consult the teachers properly about the whitelist it seems
Teachers didn't even know they had access (not to change the whitelisted sites though) to the tool they used to block the websites
...
nah mine follows the bf standard (wikipedia page)
Lol
What are you yapping about guys
Brain fuck and how we make it interesting
I take it back then
this is not the memes channel
😭
if you have a programming meme, we'll take it
unless it's that one gif of a guy trying to look like a hacker
I can’t figure out how to play an animation in unity
I already have a gif of it
And it’s in the game
But I don’t know how to access it
my ssh keeps crashing
guys i cant update my world box (mobile) how can i update world box or update is come?
ask #🚑help-chat
Same I feel like the API is kinda bad but I'm coming from Roblox so lol
What’s the reason you can’t download steam mods on mobile?
Is mobile just missing some necessary framework to run those things?
Because I can definitely figure out how to modify files I think so what’s stopping me
If I can get a detailed explanation that would be helpful
They probably just didn’t make the mods for mobile or smth
Probably?
Though seeing as the experimental mode button doesn't exist on mobile not sure if it's entirely removed or inaccessible
I guess the main reason idk is
I haven’t actually tried to mod pc myself
I remember someone mentioning that the modding framework technically exists on android but don't know how they confirmed that
If someone can send me a screenshot of how mods are stored on pc along with whatever framework is needed to run them that would be nice
thing is it's probably directly ported over from steam which ain't designed for androis
Do tell me your method, I might be able to figure out how to replicate it for iOS, maybe, no promises
thing is i don't have a method
What little I do know is that
-
BepinEX mods directly use the built in mod loader of worldbox
-
NML is a mod for worldbox that uses said built in mod loader
Ah well if you or someone else can tell me how android does it that’d be a great start, also just a screenshot of how mods are stored on PC would be dope, because I don’t see any reason I can’t open up worldbox file and stick mods into it
Actually modding android games is... very difficult most of the time
I’m guessing it’s because the mod loader itself isn’t meant to be Ran on android
No reason why modding android games in general be hard has to do with the way how the code is stored
unless it's an old unity game or has built in mod support, going have to decode with multiple steps somehow
I’d love to know how it’s done if anyone knows
I’m trying to see if it’s possible for iOS
I could try and replicate the methodology
Also there's the fact people tend to mod games just to pirate the in-app purchases
Not much beyond that
No promises but I did find imazingapp so I’m not completely hopeless
Pretty sure you can enable disable the premium from the files with .imazingapp but I’ve never tested myself because such things don’t interest me
Well do your research on how to mod ipa files then i guess
cause that's what ios uses
If you find out any information on how it’s done on android do message me
Already went down that rabbit hole once
Involved trying to interpret assembly...
Couldn't get it to work
Ah so basically
Dang
I take it, it has to do somehow, with how mod loaders actually intergrate the mod file into the game?
Can’t get mod loaders to work on mobile at all
to get it to work probably will have to directly mod the game itself
and iirc can only download that on iOS if jailbroken
Oh dang experimental mode also
Nuh uh not with .imazingapp
However
hmm actually never checked if the latest version of worldbox be a mono game...
welp I'll do that when back at my computer
I’m starting to think the only way I’ll ever download a mod on mobile is if somehow i download an apk complete with all the changes that’s not possible
It’s basically missing the ability to even use mod loaders
So working around that is kind of huge
Wydm
I think i probably could legit just injected modded code into the base code very carefully
But no idea how to get it to work otherwise
See why others say it’s not practical
In short just has the code readily accessible if you have the right tool like dnSPY for example
Huh there's already a mods folder within the apk
hmmmmm
though won't be able to edit the game itself it seems
way beyond my level
So going have to activate experimental mode somehow ...
very interestin
Oh wow
@tulip quest I need help
It’s an emergency
I made a unity build
And in the game I put it so the mouse is invisible
And when I press escape it doesn’t escape
And my build glitched out and started making infinite prefabs
I think I accidentally made a virus 
Phew I think I fixed it
When in doubt, open task manager using ctrl-alt-delete and kill the process
When in doubt, spam alt+f4*
thats how the beta males do it
And that's how I do it, too
I just did alt f4
I couldnt even open task manager because it was full screen
Is he installing worldbox mod on android?
Nah just showing that there's mod stuff built into the apk
but no actual mods themselves besides the example one
Aww 😦
real
(the reason I don't use Rust)
replit mobile app
literally runs on the same thread as the thing im running
so whenever theres an endless loop the whole app freezes
L, I only feel like that when I proofread my code repeatedly and find it to be exactly correct, only for it to not function because I put an if x instead of if x != None
if x doesn't catch 0, if x != None does
It happens to me in JavaScript
But there's different causes
Go ahead if its coding stuff
Nice! I think it could definitely use a tutorial for the controls and aim and stuff (even just in the description) but it's more functional than a ton of things I've made.
Oops, I thought the player being a mouse was good enough 
Didn’t really think about it much after that
yeah, I was just thinking it'd be nice if it had something just telling you you're meant to not crash into anything
I was wondering for a bit if there was more to control than avoiding stuff but yeah
it's cool that you've got proper physics between the planetoids/planets
technically the planets dont interact with each other
tomorrow will be the first day of game design class
but otherwise yeah
Don't they at least collide? I thought they did
they do but thats just unities physics system
ahh, ok
it would be cool if theres a trail
like a white trail
easier to track movements and also would look very nice
my fucking DEVTOOL is getting an error
?????
THE DEVELOPER TOOL
????
ITSELF
???????
what developer tool
chrome
There’s the issue
honestly, using chrome today is an issue
for anything
why pay to have a better experience for each individual website you use (and suffer when there's no option) when you can just get firefox and ublock origin?
chrome still has the best user experience
Dude, even if everything else was perfect the ads would take it down to mid-tier
yeah, you can pay for youtube premium and stuff, but that doesn't cover every site
on chrome? I thought Google was trying to ban adblockers on Chrome
sometimess i get ads but its still a work in progress
google banned manifest v2
ublock origin is manifest v2
ublock origin lite is manifest v3
and manifest v2 is not getting banned until june 2025
ahh, ok
manifest v2 isn't going to be banned for non-chromium browsers though, right?
no other browser is planning to ban it
nice
but some browsers that use chromium like brave and opera have built in ad blockers that will still work
yeah, I thought that seeing as they go off of chromium they'd also have manifest v2 banned
looks like it's just a future thing instead of a present thing for them then
yeah but they have built in ad blockers its not an extension so chromium cant ban it
ahh, ok
good to hear chromium is still gonna be bearable for a while longer
although I thought like over half of the "adblock detection" on youtube was just chrome/chromium snitching
yeah im using edge and firefox frmo now on
edge???
edge is the best
it supports firefox and opera plugins too
and when you run out of space it will automatically delete history and older cookies n shit
I thought it was chock-full of popups of microsoft telling you what to do
or at least, that's what I got in the short time I spent getting firefox from it
that was the update thing you can just close that
plus, even if it can be disabled... I have enough annoying things I have to disable to worry about already
I already have to sit through finding all the windows options for stopping this and that, (not all of the options even work) and then I have to deal with MS Edge
yeah why tf does nothing work
the amount of times I had settings crash on me right after a clean install
I've got a whole news section on my toolbar even after I toggled an option literally to turn off the news and interests section in the toolbar
and all the bluetooth did was break the fucking thing and wifi because it was the same chip
yeah i fucking ahte that
everythings so laggy too
thank god I use linux now
it sucks
also for some reason the section to change my computer's timezone is greyed out
that thing freezes whenever I try to sync time after i switch to windows to play helldivers
hang on
now the option is available
but only after I had to look up how to change it with the command prompt
average windows behavior
oh I just reinstalled windows
I dont think microsoft has anything to do with mcafee
the command prompt with administrator permission couldn't get rid of it
had to wipe the hard drive and reinstall windows to delete mcaffeee


