dydimos Posted March 22, 2017 Share Posted March 22, 2017 (edited) I have this code: Script items: module example { imports { Base } item item1 { Weight = 0.5, Type = Normal, DisplayName = this is item1, Icon = item1ico, Packaged = TRUE, CantBeFrozen = False, } } And this is mi code for Distribution: require "Items/SuburbsDistributions"; table.insert(SuburbsDistributions["all"]["counter"].items, "example.item1"); table.insert(SuburbsDistributions["all"]["counter"].items, 100); table.insert(SuburbsDistributions["all"]["fridge"].items, "example.item1"); table.insert(SuburbsDistributions["all"]["fridge"].items, 100); But, my item no spawn ingame Edited March 22, 2017 by dydimos Link to comment Share on other sites More sharing options...
GoodOldLeon Posted March 22, 2017 Share Posted March 22, 2017 Typo. The module is exemple on the item and example on the distributions. Link to comment Share on other sites More sharing options...
dydimos Posted March 22, 2017 Author Share Posted March 22, 2017 I'm sorry, I do not understand you.Can you show me with an example? Link to comment Share on other sites More sharing options...
dydimos Posted March 22, 2017 Author Share Posted March 22, 2017 (edited) 2 hours ago, TheLeonBM said: Typo. The module is exemple on the item and example on the distributions. Aaaah, ok, if I wrote here wrong, sorry ... but it is "example" in both cases. Edited March 22, 2017 by dydimos Link to comment Share on other sites More sharing options...
GoodOldLeon Posted March 23, 2017 Share Posted March 23, 2017 Oh I thought that was how you wrote it in the files, sometimes something as simple as a syntax error can break things. Where are you putting the files exactly? Link to comment Share on other sites More sharing options...
dydimos Posted March 23, 2017 Author Share Posted March 23, 2017 58 minutes ago, TheLeonBM said: Oh I thought that was how you wrote it in the files, sometimes something as simple as a syntax error can break things. Where are you putting the files exactly? sooo I can send you the mod via PM so you can see it clearly, and several have told me that it is written correctly ... maybe your look at something that no one else sees. Link to comment Share on other sites More sharing options...
dydimos Posted March 23, 2017 Author Share Posted March 23, 2017 2 hours ago, TheLeonBM said: Oh I thought that was how you wrote it in the files, sometimes something as simple as a syntax error can break things. Where are you putting the files exactly? Problem solved, the distribution file had been saved as txt and not as lua .... thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now