Commit Graph

65 Commits (b59e121565018e754ff04d0be6cbd37f417191bc)

Author SHA1 Message Date
Austin Shenk b59e121565 Added book decoding
All data is decoded correctly except if the story conatins more than one
line. I am working on a way to decode multiple lines so you can have a
full featured story.
2013-01-24 23:27:07 -05:00
Austin Shenk fd8c44388e Added book data to be saved 2013-01-24 23:25:48 -05:00
Austin Shenk 8959cf0ae1 Added variable to hold registered books 2013-01-24 23:24:27 -05:00
Austin Shenk 674d0dd274 Added book file iniitialization 2013-01-24 23:21:29 -05:00
Austin Shenk eec194f2d1 Added book dofile 2013-01-24 23:21:11 -05:00
Austin Shenk fa502ac625 Added readable books to the mod 2013-01-24 23:20:26 -05:00
Austin Shenk 5537a814f6 Moved a lot of code around 2013-01-21 19:53:04 -05:00
Austin Shenk 47062e4e72 Chenged to new separator 2013-01-21 19:52:40 -05:00
Austin Shenk a295816948 Changed the data separator to unique char 2013-01-21 19:52:17 -05:00
Austin Shenk 032e651a98 Fixed small bugs 2013-01-21 19:51:44 -05:00
Austin Shenk 7ab770c253 Fixed global function calls 2013-01-21 19:51:26 -05:00
Austin Shenk 1b20eb33b3 Separated code blocks into smaller files 2013-01-21 19:50:46 -05:00
Austin Shenk 843b8193d6 Changed data separator to | 2013-01-20 16:02:57 -05:00
Austin Shenk 8c3db6baf7 Added prototype for quest node 2013-01-20 15:57:45 -05:00
Austin Shenk 3c3999383e Changed comma separator to |
| is used less in text so it'll prevent some issues when splitting
2013-01-20 15:57:16 -05:00
Austin Shenk c7a85c2782 Added quests variable 2013-01-20 15:56:12 -05:00
Austin Shenk 0b6023d574 Added initial stuff events 2013-01-20 15:55:52 -05:00
Austin Shenk 88d320e923 Fixed detached inventory layout when decoded 2013-01-19 12:29:40 -05:00
Austin Shenk 4a7b375da9 Fixed detached inventory issue 2013-01-19 12:10:08 -05:00
Austin Shenk c09629daf9 Added new file to read
Init has been repurposed to store the detached inventory data. Data is
then replaced into the inventory on startup.
2013-01-19 12:09:37 -05:00
Austin Shenk 1d9f7cc7a6 Added global call and reduced initialstuff data
Initital stuff is now saved when the /save command is called. Only the
position for the initial_stuff node is saved because the game handles
the rest.
2013-01-19 12:08:27 -05:00
Austin Shenk bfbcf5e0bb Added function to save initial stuff 2013-01-19 12:06:26 -05:00
Austin Shenk 11538cf5f8 Relocated creation od etached inventory 2013-01-19 12:06:04 -05:00
Austin Shenk 383d48dd49 Added initial stuff and bug fixes
Added check to make sure an area was found to remove.
Added infotext to ID blocks so you can see ID without clicking.
Added new node to edit initial stuff.
2013-01-18 17:54:03 -05:00
Austin Shenk f0f97010b0 Added initial stuff to save 2013-01-18 17:51:39 -05:00
Austin Shenk ddb4eb757d Added initialStuff
Not sure if I am going to need to use this
2013-01-18 17:51:20 -05:00
Austin Shenk af64fafd66 Trying to implement detached inventories 2013-01-18 17:50:56 -05:00
Austin Shenk 88c6bdca5d Starting initial stuff procedure 2013-01-18 17:50:26 -05:00
Austin Shenk 9367de6beb Fixed starting node calculation
Height needed one added when the height was even.
2013-01-17 22:04:43 -05:00
Austin Shenk 50fb976006 Added error handling to respawn
Checks to make sure there are points to search through for the player to
respawn at.
2013-01-17 21:10:04 -05:00
Austin Shenk 3411e29093 Removed print statement 2013-01-17 21:08:49 -05:00
Austin Shenk 9f8e85b97c Changed respawn control to global functions 2013-01-17 21:08:38 -05:00
Austin Shenk a5adc1706f Updated textures 2013-01-17 21:08:05 -05:00
Austin Shenk ab103135d1 Added general definitions for simple nodes 2013-01-17 20:26:31 -05:00
Austin Shenk 45e6ea4421 Added spawn functions and other stuff 2013-01-17 20:25:43 -05:00
Austin Shenk a0a50e85b4 Added checkpoint file decoding
Fixed bug to now allow string data to be stored alongside the integer
data in the files
2013-01-17 20:25:07 -05:00
Austin Shenk bb60efc3ce Added unbuildable, full, spawn, and respawn nodes 2013-01-17 20:24:06 -05:00
Austin Shenk 5cf80ac884 Added checkpoint file and moved global functions 2013-01-17 20:23:22 -05:00
Austin Shenk 5a280a45fc Added general sources and id source definition
Also other global variables which can be changed for customization
2013-01-17 20:22:29 -05:00
Austin Shenk bd8daa0aac Renamed to Global 2013-01-17 20:20:42 -05:00
Austin Shenk 12127520c5 Fixed startup process from normal to creative
Fixed table access to new string value and added visual size to be set
on node construct.
2013-01-10 21:46:23 -05:00
Austin Shenk d964b32077 Fixed writing bug
local str in for loop was conflicting with str variable used to store
the string to wirte to file.
2013-01-10 21:44:51 -05:00
Austin Shenk dce4f6dbda Added unbuildable protection 2013-01-10 21:43:47 -05:00
Austin Shenk 8cae862d83 Modified creation to work with new key storage 2013-01-09 22:36:14 -05:00
Austin Shenk 3e80719c18 Added new string key in sourceData table 2013-01-09 22:35:27 -05:00
Austin Shenk b0d7f01b24 Working on removing node from source table 2013-01-09 22:34:10 -05:00
Austin Shenk d72e6c3cd8 Added positionToString function
Returns x,y,and z value in string format.
2013-01-09 22:32:43 -05:00
Austin Shenk 60f1e3136c Changed key for table storage
Key is now a sring that is basically the x,y, and z value printed in
that order. Cleaned up search algorithm for area definition. Also, added
unbreakable and fully protected funcrions.
2013-01-09 22:31:45 -05:00
Austin Shenk 853495cb93 Removed after implementation
Found the solution to the problem and it wasn't related to time. Instead
it was incorrect or null data stored in table. Minetest couldn't place a
nil node so it wasn't placing both nodes.
2013-01-08 22:16:42 -05:00
Austin Shenk 752a93ed3d Implemented the split function for string
Instead of using find(","), I am using split(",") to divide the string
by commas into an array and storing that. Makes for a cleaner writeup.
2013-01-08 22:15:15 -05:00