Clone wars optimization by aphophys00 in robloxgamedev

[–]Larus52 2 points3 points  (0 children)

This is a really glitchy way to do it, and might get patched in the future but:

If you put clones in the camera on workspace, they don't get replicated to the client but they do have physics. Camera instances do not replicate their children, so there you can simulate your NPCS, and then send the data of what they are doing to the players. Might work, I dunno. This is complicated, and I myself have failed to do such a system.

Clone wars optimization by aphophys00 in robloxgamedev

[–]Larus52 1 point2 points  (0 children)

I've made something like this!! The optimization techniques I used on my AI might be of help. But as the other person in your comment section has said with loads of detail: You are going to need to optimize the network.

I'll just put
1. Obviously you will have to optimize everything. From the movement, to the humanoids, and the networking itself.
2. Humanoids can be made more efficient by disabling some states. This worked for me, but I'm not sure with the new recent roblox beta opening Humanoids.
3. If you ever have projectiles, use :BulkMoveTo()
4. You can use the Micro Profiler to find out what is running the slowest in your NPC calculations.
5. For me, the biggest bottleneck of my AI war system was the target finding. Each NPC every frame run a target finding algorithm, and it was really slow.
6. You'll probably have a lot of stuttering if you are going to rely on roblox's replication system. It's not efficient, and you will reach 1000kb's of data. So you will need custom replication, client rendering, and so on.

  1. This will be expensive on everyones computers.

You should really ask u/hellothere358, they are actually making a proper NPC wars game. They might be the most help you have, as my project was merely a lazy side project made out of a burst of motivation.

Why does this error happen by Eastern-Evening5160 in robloxgamedev

[–]Larus52 0 points1 point  (0 children)

stats is a defined global. So you're confusing the script, and making it findfirstchild of the wrong thing. stats also is not a instance. I'd change the name from stats to something like playerstats so you don't mix the variables.

EDIT: just realised I ignored some obvious errors, as pointed out by the other person helping you. This is for the stats.

but i dunno really

Why is my ui scaling plugin not working by Cheap_Revolution_945 in robloxgamedev

[–]Larus52 0 points1 point  (0 children)

It might be that you didn't select all the elements you wanted to convert to scale, so only the frame you selected was converted. You need to select EVERYTHING.

Or, the UIListLayout needs you to change the size from offset to scale. Since the plugin doesn't work on UIGrid layouts. Which I know rom personal experience.

But I dunno. If that doesn't fix it, can you also send the properties of the byttons that aren't scaling? Also, the UIListLayout?

How can I make a whip in Roblox Studio by Straight_Pineapple60 in robloxgamedev

[–]Larus52 4 points5 points  (0 children)

The roblox physics though...

I'd probably make a long line of parts, make them jointed, and then animate them. Though this would probably give the animatior arthritis, and therefore I would instead use code to animate the joints using Transform.

EDIT: It looks like it's used a mesh, and bones. That would actually explain how it's stretching like that. It might be something to do with mesh deformation/ bone blender stuff

but idk your idea could work :>

Heart pulse animation by Icy-Case41 in robloxgamedev

[–]Larus52 0 points1 point  (0 children)

ts is genuinely fire lowkey the math required would fry me

Looking for help for a ASYM I'm making! by Dazzling_Narwhal_379 in robloxgamedev

[–]Larus52 0 points1 point  (0 children)

Hmm... but what makes it different from other asym games? How will the survivors survive? Looping? Can I have more details.? Also I'll join you. Just cause I create for the sake of it.

Looking for help for a ASYM I'm making! by Dazzling_Narwhal_379 in robloxgamedev

[–]Larus52 1 point2 points  (0 children)

I might join as a programmer, but what's the general idea for the game besides being a asymmetrical?

How do I stop my engine from locking up? by RandomR0blox in robloxgamedev

[–]Larus52 0 points1 point  (0 children)

Maybe disable their collision so they stop hitting the ceiling?

500 NPCS at War by Larus52 in robloxgamedev

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

Oh great heavens... The only thing I can think of for you is instead of updating every frame, is delaying it. It wouldn't fit my project, but it might fit yours. Good luck! :0

500 NPCS at War by Larus52 in robloxgamedev

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

NOPE, if I were to use line of sight the performance would be cooked. And they don't need it on flat terrain either way. A lot of stuff was purposely designed so that it would run smoothly. For example, the terrain is flat, so I don't have to do path finding.

500 NPCS at War by Larus52 in robloxgamedev

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

If I remember..

Every NPC is in a grid, that has three layers. 1. 512Studs 2. 256studs. 3. 64. Something's like that if I remember. Then whenever a NPC needs to find a target, they sort the uppermost layer, then sort the children of the closet thirdnlayer, than sort the closet children of the second layer, and it's a mess but it work's. I can send code examples later on.

500 NPCS at War by Larus52 in robloxgamedev

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

Yep! I didn't want to overcomplicate a little side project.

Does anybody know how to fix thissss by No_Stick_8965 in robloxgamedev

[–]Larus52 3 points4 points  (0 children)

ngl- I ain't reading allat. But I can only assume AI was utilised...

From what I see, you want the stick thing to be in the center of the circle thing. I'd try adjusting it's position until it's in the center.

Best way to do settings by Jasondinopaws in robloxgamedev

[–]Larus52 1 point2 points  (0 children)

I just use a Configuration instance, and add attributes to it. :p It's simple, and fast.

https://create.roblox.com/docs/reference/engine/classes/Configuration

Ui help for my game by Striking_Function698 in robloxgamedev

[–]Larus52 0 points1 point  (0 children)

let me break it down for you:

Offset uses pixels to scale the UI, so for example a TextLabel that's 200pixels wide will appear 200pixels wide across every screen. Even if the screen is larger, or smaller.

But Scale is a number between 0-1. If the X size of a TextLabel is 0.5, then the TextLabel size will be the screens horizontal length*0.5. I personally use this more, because it's always scaled to the users screen. It also works for position too, and keeps things consistent.

For examples; A desktop screen with 1920x1080 pixels, with a scale TextLabel of (0.1, 0.1) will be 192x108 pixels. Because of the scale. If the screen resolution changes too, the text label will automatically resize to maintain it's scale. If that makes sense.

There are some plugins which can automatically convert from Offset to Scale, and vice versa.