Jump to content

scripts and lua folders


hrot

Recommended Posts

Can anyone can explain what those folders and their content are responsible for and what's differences beetwen them?

 

For example there is suburbsdistribution.lua file in lua\server\items and there is suburbsdistribution.txt file in scripts \items

 

I want to understand better what files are for what etc.

 

Thanks in advance

Link to comment
Share on other sites

suburbsdistribution.txt in scripts is obsolete and to my knowledge, does absolutely nothing.

Scripts folder is for .txt files that describe items and recipes.

Lua is for .lua files

Client and Shared are loaded with the game but before you start playing.

Server and Shared are loaded when you start playing.

Client is mostly for UI, character creation etc. stuff, Server is for gameplay related stuff and Shared has to do with both.

Link to comment
Share on other sites

Soo.. when i changed things in "scripts" folder for example recipes.txt or items.txt it doesn't do anything?

So if i want to modify game i only change files in lua?

Every file in scripts does something except for distribution files, they are obsolete.

items.txt

newitems.txt

recipes.txt

uniquerecipes.txt

camping.txt

farming.txt

fixing.txt

All those files contain item\recipe\fixing code and are used by the game. If you modify them, the effect will be visible in game. Sometimes not immediately but after creating a new world.

Link to comment
Share on other sites

 

Soo.. when i changed things in "scripts" folder for example recipes.txt or items.txt it doesn't do anything?

So if i want to modify game i only change files in lua?

Every file in scripts does something except for distribution files, they are obsolete.

items.txt

newitems.txt

recipes.txt

uniquerecipes.txt

camping.txt

farming.txt

fixing.txt

All those files contain item\recipe\fixing code and are used by the game. If you modify them, the effect will be visible in game. Sometimes not immediately but after creating a new world.

 

 

Arent the distribution files for the loot location?

 

I thought you need to set the distribution of items to make it able to find new ones ..

Link to comment
Share on other sites

-snip-

 

Yes, suburbsdistributions.lua located in media\lua\server\Items is for handling the distribution of items on the map.

I was talking about suburbsdistribution.txt located in media\scripts which is, to my knowledge, obsolete.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...