|
Post by GH Games on Apr 8, 2017 12:49:16 GMT
3D Rad Logging System
So, I have just made a fully working Inventory system with items the player can eat to gain health, drink water for health, pick up new items, have a maximum weight and so on. It's a little bit complex (200 lines so far) so I thought it would be good if I could see when/if a bug occurs so I know exactly where to look. Hence this Script was born into that system and I have just made it a seperate one. In my opinion it is super super helpful, so if your currently scripting and it isn't working and you don't know why because everything seems perfect, give this a try and see if it works well for you too. The way it works is: CreateLog("Pass it the text to log here","Give your log a name here"); ...and that's it! It will create a .txt file with the name and text you specified as well as the creation date. I have compacted it down to one line of script too so it doesn't take up the usual 11 lines of space. I hope you find it useful, it might be a good idea in the long run for Customer Support so you can give specific Error ID's making helping people much quicker and easier. Which is always a good thing we all love quick, easy, fast customer support Attachements LogSystem.obs (847 B)
|
|
|
Post by Famer on Apr 8, 2017 14:35:06 GMT
Thanks dude!
|
|
|
Post by indiedev on Apr 9, 2017 13:06:27 GMT
GH, i think you got the wrong end of the stick when criticized for having too many lines in your scripts [not by me] it was for too many blank lines, so condensing it all to 1 line is not the solution, scrolling horizontally is very inefficient, as you need to see all code on 1 page.
i'd use the counter object for this myself, but good work anyway..
|
|