#My attempt to mod contraptions and bogeys
1 messages · Page 1 of 1 (latest)
You should explain what this does and upload screenshots
Sounds good I'll do that after I get dont dropping gf off back home
Screenshot idk how im gonna show moving behavior
But description for sure
What It Does
The mod provides comprehensive performance optimizations through several key areas:
Core Optimizations
Spatial Partitioning: Improves collision detection using grid-based spatial indexing
Level of Detail (LOD): Reduces detail for distant objects to improve rendering performance
Async Physics: Moves physics calculations to background threads
Batched Updates: Groups frequent updates together to reduce processing overhead
Object Pooling: Reduces garbage collection pressure by reusing objects
Mod-Specific Optimizations
Valkyrien Skies: Optimizes physics updates and collision precision for airship physics
Trackwork: Enhances train system performance with optimized update frequencies
Create: Improves contraption and machine performance
Train Collision: Advanced collision detection and player correction systems
How It Works
The mod uses a modular optimization system with these main components:
Architecture:
OptimizationManager: Central coordinator managing per-dimension optimization contexts
PerformancePatcher: Applies runtime patches to detected mods (so i can fix crashes from other mods easier)
Integration Layer: Hooks into mod APIs for targeted optimizations
Metrics & Debugging: Performance monitoring and adaptive quality management (still expanding it)
Implementation Strategy:
Detection-based: Automatically detects installed mods and applies appropriate patches
Configurable: All optimizations can be enabled/disabled and tuned via configuration
Non-intrusive: Works without modifying original mod. just applies its own values over the top of whats there.
Adaptive: Includes runtime performance monitoring and quality adjustment
Key Features:
Memory Management: Garbage collection optimization and memory pooling
Runtime Configuration: Settings can be adjusted without restart
Performance Metrics: Detailed performance tracking and debugging tools
Multi-threading: Background processing for physics and updates
Spatial Optimization: Grid-based collision detection and culling
---------------------------------------------
I need to make a patch for a friend that DMd me about empty schematics on an engine to change the mode causing a crash
does that work?
How does this part work?
Valkyrien Skies: Optimizes physics updates and collision precision for airship physics
And how does it do that while satisfying this?
Works without modifying original mod. just applies its own values over the top of whats there.
The patcher uses ObfuscationReflectionHelper.findField() to access VS internals at runtime, meaning:
No VS source code is changed
VS can be updated independently
Optimizations are applied dynamically
Instead of changing VS code, it overrides configuration values:
java
// Original VS: private static final double COLLISION_MARGIN = 0.01;
// After patching: private static final double COLLISION_MARGIN = 0.05;
Event Integration
The optimizer hooks into VS events through reflection:
java
Class<?> vsEventRegistry = Class.forName("org.valkyrienskies.mod.common.VSEventRegistry");
// Registers event listeners without modifying VS event system
I hope anything im saying is useful
Bro, org.valkyrienskies.mod.common.VSEventRegistry does not exist
then what did it actualy call?.. let me look
@zinc hawk okay yeah ur no longer allowed to post these 😠you have absolutely no clue what this stuff does
okay np
all i care about is it fixed a problem someone was having and im going to continue finding and fixing problems even if it doesnt go here
The org.valkyrienskies.mod.common.VSEventRegistry is referenced in the Performance Patcher code at line 51 of ValkyrienSkiesOptimizer.java. This is part of the Valkyrien Skies integration system.
what?
VSEventRegistry quite literally does not exist
i don't know how to tell you this
was mf restricted because of posting ai slop? insane 1984
@zinc hawk was unrestricted
post it
okay
i see that you want to do something cool, but AI is writing a bunch of nonsense
core.game.physicsengine ðŸ˜
if you don't know programming to actually know if what it writes makes sense, you will not have anything working
i am working on removing and replacing nonsense with something that works but i need the people with the actual functioning knowledge to help me get the stuff correct so i can actually do it
so if its the wrong thing its easier for me to just understand hey this doesnt do anything use this instead
ranther than blocking me
fixing AI hallucinations is not fun, so I really doubt that you will find anyone
understood
you should learn some actual programming to use AI effectively
This is me learning but i want to do productive stuff while im learning
even if this is making junk to fix
okay i'm gonna keep it 100, please get some basic java and modding knowledge. ai does not know how vs works unless you tell it, and you can't do that unless you know basic mod structure and an overview of how vs works
i would instead recommend breaking vs and fixing it instead, or whatever other mods ur trying to fix
what you're doing is like trying to learn university level math without knowing what 2+2 is
it's not going to work
do something simpler first
4
we got actual clanker lover here
why do you rely on this thing
not just for coding
but also for making up answers
wah..
like if you want to vibe code something vs related at least study the codebase either by yourself or ask ai for explanation what is what
mate you can give me all the same arguments people have been making for the last 3 years on AI its not going to change that im not the only one thats going to start doing this
even the basic structure of anything in the mod tbh
oh god they are an actual ai bro
ðŸ˜
thats rude
It’s a powerful tool but it takes quite some skill to actually use it with an existing codebase
Bru
If people try to make a tool do everything for them while not knowing what it even makes
We're doomed
You don’t have that skill or at least applying 0% of it here
^ to an extent, ai is only as good as the user
esp when it comes to undocumented, complex code
Wouldn’t be so strict with that
But yes
The point is to make something that does work and then i want to annotate it to explain the stuff to me like a textbook (IF IT WORKS)
IT COULD BE HALLUSINATION IK
Minecraft modding is one of the less documented fields
Like yes AI can code webslop javascript stuff all over the day
okay, if ur gonna do that, feed the ai the actual mod classes you want to modify
you dont think im taking this between multiple different places googling this stuff asking mod devs and reading the github notes on how im supposed to do this? im not taking raw outputs and shitting it out in a jar
But here a lot of knowledge is hidden in discords or whatever not in ai datasets
i have errors yes
Wait does he know what classes are and what they do
i fix them also
it still produces absolute nonsense so idk how effective it is
the person i made this for said it fixed his issue
Just ask AI why the code is bullshit and it will kindly explain it indeed is
(Because you’re absolutely right)
now i need to find the needle in the haystack of shit to figure out what actually made it do this
"You're absolutely right!"
you're asking an ai who doesn't have a single clue on how create or vs works to fix them my guy
well then annotate the source code better so it can understand whats going on
No
wha
Why would we annotate source code just for you
Absolutly fucking no
the source code is just fine, if you know how java works ðŸ˜
right
Why should we embrace ai slop
Its not going away
Just wait until it becomes good enough to read the code man
dont embrace it improve it to make less slop
Probably half a year
Until then
That depends on the politics around gen AI but you're right it probably isn't
bro ðŸ˜
Please don’t attempt to do this bullshit
Like there’s erroneous vibe code that looks ok but isn’t that sustainable
it can read the code, if you give it the code
but unless you know where the code is, you can't do that
And then there’s unsalvageable meaningless bullshit
Whatever you posted is the latter
Well anyways im going to keep asking it to explain itself thanks for the feedback
Actual developers with real insight on how the code works, and why bugs occur already know how to read vs2's codespace
I need real info to improve so at some point i got to ask someone
it gave you a horrible answer for the vs events registry that it hallucinated lad
If you insist on using ai to code, clone the VS2 repo into a local repository and open it with Cursor or something
start with kaupenjoe's series on minecraft and java
Annotating the code more to help AI is like opening the monkey enclosure in a zoo
these have the java basics you need, the mod structures, how registries work, a lot of good stuff you need
It leads to absolute chaos
Okay i have one more request can we get an AI slop wannabe dev room lol
XD
No

Nuh-uh

for the love of god build some actual dev skills ðŸ˜
Optimization specifically is hell of a task even for people already familiar with the mod
mmm. no i have too much to do ranching already
Those who aren’t start with very basics
but ill keep going
Like maybe implementing compatibility for some very simple mod
Start with a content mod, optimization requires a lot of experience, especially for a mod like VS
I dont like making content mods
Or tracking down the reason of a simple bug
Just ask AI to make up the content and code the rest, easy

Ai is actually really good at content mods
I made a stupid firetruck mod and it was dissapointing how little i cared about it
they're the entry into modding, adding blocks, items, basic networking, loottables, etc
they're just good experience
Yeah but my only intrest is in the stuff under the hood
Ok then learn about it properly
ok
Then actually express that interest
that doesn't matter, you have work on the little stuff before getting to the bigger projects
im still going to use AI though because i dont have days and days to sit at a desk
its just a necessity of pretty much everything in life
At least follow some sort of intro to java course or something if you don’t want to make content mods
If you don’t have time that severely should mc modding even be a priority
you don't need days and days my guy, just an hour or less a day will get you there in no time
yes my free time i want my world to work how i intend it to
your ai mod isn't doing that
it isn’t doing anything nor it will any soon 💔
I get 2 hours of freetime a day after i deal with the animals before i go to work so im trying to maximize how much i can do
not yet
that's enough time to work through some kaupenjoe java videos
Again learn some shit and halfway through the course you’ll see how this product of generation is just not useful, none of it is
And maybe you’ll reconsider how and where AI should be applied
probably not, As it turns out it didnt read the source code folder i gave it of VS2 (explains why it tried to use a name it thought would be used..) This is the one im currently working on
I garuntee you that you will spend the same amount of time fighting with AI as you will fighting with Java, except that fighting with java will actually improve over time
Your time is your own, but our recommendations are the fastest path to success with modding
You are just approaching it wrong. There's nothing wrong with using AI, but you need to
-
Tell it what you're trying to accomplish and to come up with a plan to do it. Make sure you understand the plan as much as possible, including specifically what code in VS you need to look for. It will also be useful to use something like Gemini or ChatGPT that you can attach a GitHub repository to.
-
Begin on step one of the plan, whatever that is. There will be an enormous amount of things that you don't understand, many of them just generally programming related. Make sure to ask questions all the time, whenever there is something you don't understand. Put it on "Study" mode if you have the option. It will probably take you hours, days or even weeks to get anything done, but that's intentional. If this is going too slowly for your liking, return to step 1 and try an easier task.
-
Once you've accomplished the task with the help of AI, throw it out and try again on your own. You should have learned enough that you understand how to redo your work without the assistance of AI and you will understand where improvements can be made the second time around.
Using AI like you are now, trying to get it to one shot a program without understanding what it's outputting, is a recipe for failure.
Take it from a professional software developer who uses plenty of AI
Oh no Ruby coming over with the vibing tips 
More like "using the AI to learn" tips
Ruby you learned Java way before AI was a thing (atleast I think)
over 10 years ago so definitely yes lol
But in my very early learning stages, I was taught by my dad
I think self teaching is pretty hard, and I can see how AI can help a lot with that
The problem is that it's really hard to avoid being lazy and using as a crutch
oh my god
what in the actual fuck is this
the vibecoded attempt at an optimisaiton mod, and now this???
isn’t this also a vibecoded attempt at an optimisation mod?
How bad does it have to be for it to have even ruby say that there is something wrong ðŸ˜
look at the actual code too
i sent sm of it in vscreators
but its all hallucinations
I literally don't have enough energy to be fighting against people who use AI to answer
this one might be my favorite lmao
well
at least they'll never read bad tps

ultimate optimisation
wait, did you ban him?
oh my b
they are still here as far as I know
I thought you were implying you did with this lol
I would not ban them for that
they left, yeah
I don't feel hate or something like that, I think I am just desesperate
like actual despair
ikr
9/10 thread
yeah, this is one for the VScord history books for sure ðŸ˜
I mean
I learned lua mostly by myself, if I had issues I consulted people, but most of it was reusing my knowledge of python
But I learned python from being taught by others, including a high school coding teacher
So learning by yourself is pretty possible, you just gotta have a solid foundation first
As for java
I'm just lazy

So I kinda don't
What's F?
It signifies it’s a floating point number
Ah it's just for floats
Because a double would be specified as 20.0
So the function just returns 20 always
💀
Why on earth would (double)20.0F be necessary…
Though we’ll never know nothing of that makes sense
Yea
Would be higher if he didnt leave 
We in vscreators can only wish we had such gemeralds
Btw is that the server that has the other half of a troll emoji

No
huh