#Optimizing Games

1 messages · Page 1 of 1 (latest)

patent heath
#

bro why is it so hard to go back and refractor/optimize games...

is there a way to show all scripts that contains a mention of something?

ps: anyone have a template on how to organize scripts and assets/models? kinda trash at that

north pecan
queen pollen
#

like a framework?

#

there's plenty of youtube tutorial

#

hold on

patent heath
whole gladeBOT
#

studio** You are now Level 1! **studio

patent heath
#

i also saw a lot of videos on organizing with modules which i dont get the point. i know that you can reuse code in module scripts, but I don't get the idea of loading modules and using them for organization?

queen pollen
queen pollen
queen pollen
#

if you write it in a module

#

its cleaner

#

basically you write all of your codes in module

#

instead of having 10 differnt local script with 10 different modules like

#

SprintHandler

#

InputHandler

#

just use a module Loader

patent heath
#

why not just put them all in a regular script?

#

in a module right

#

would it operate the same way as a regular script then?

queen pollen
#

yes

patent heath
#

are u adding the functions to the table and then calling them at the end?

queen pollen
#

yes

#

its more organized

#

like would you prefer all module script and 1 local scirrpt

#

or some module script some local script

patent heath
#

ig all module scripts

queen pollen
#

exactly

#

its harder to implement tho

#

but its cleaner

#

the more you do it the easier

patent heath
#

what makes it harder?

queen pollen
#

since we're all used to local script and server script

#

you'll have to get used to making it all in a function and stuff

patent heath
#

oh ok

#

then we would have a loader right

queen pollen
#

its not really that much harder lowkey

patent heath
#

is it only responsible for loading the modules and nothing else?

queen pollen
#

it basically just call all the modules so it can run like a normal script

patent heath
#

got it

#

so rn i have something like this

#

but on the server side

#

idk where to do the same thing

#

so i have like local scripts all over the place

#

what do u think abt my server side modules?

#

I've also seen some client modules like this

queen pollen
#

same thing

patent heath
#

Should i do that ?

queen pollen
#

yes

queen pollen
#

like

#

Player Folder

#

Egg Folder

#

also

#

Data modules dont need to be laoded

#

its best to put it in another folder or smtg

patent heath
#

will it cause an issue if its loaded?

#

oh wait i get what ur saying

#

wait no i dont

whole gladeBOT
#

studio** You are now Level 2! **studio

patent heath
#

if u not require it how will the code inside it run

sweet grove
#

You require them in the loader

#

And u require the loader

patent heath
#

I only have one loader

sweet grove
#

Oh

queen pollen
#

just write a normal script

#

paste it in a function

#

and call that function

#

in the loader

#

personally speaking i never even used module loader in my life lol

patent heath
#

huh

#

do u still organize ur game w modules then?

queen pollen
#

yes

#

i use modules

#

but not modules based

#

i feel like its easier to understand what is a util what is a manager

patent heath
#

oh ok

sudden basin
patent heath
#

what do you think abt it?

#

Another example:

#

@queen pollen can i get ur opinion too?

#

I also kinda like this because it reminds me of instantiating java var

queen pollen
#

just do the normal way

#

no need params lowkey

#

you can add it doesnt matter

#

but just use plr = Players.LocalPlayer blablalbla then plr.CharacterAdded