Search found 148 matches
- Thu Jul 21, 2016 7:05 am
- Forum: Games and Creations
- Topic: My projects and demos
- Replies: 95
- Views: 50070
Re: My projects and demos
Today's update: math.randomseed( os.time() ) function newPerson(p,q) local object = {} object.name = p object.age = q object.bama = math.random(1000000,200000000) function object:sayName() print(object.name) end function object:sayBama() print(object.bama) end return object end local bill = newPerso...
- Wed Jul 20, 2016 9:47 am
- Forum: Games and Creations
- Topic: My projects and demos
- Replies: 95
- Views: 50070
Re: My projects and demos
Thanks very much for the links and examples from your work Zorg. That helps a whole bunch. Update: One important part of the program, that aids in immersion is having a rich list of names for NPCs. It can also be used to give the player a name if the player can't decide for himself. My method was to...
- Wed Jul 20, 2016 2:16 am
- Forum: Games and Creations
- Topic: My projects and demos
- Replies: 95
- Views: 50070
Re: My projects and demos
That would be great. I would like to do something simple like just write a 12 tone line on the fly, that seems like a style that would be easiest to implement. I could use it for the AI scenes. Dreamer / Flying cows wrote some of the most outstanding mods I have ever seen. For those wondering what w...
- Tue Jul 19, 2016 11:40 pm
- Forum: Games and Creations
- Topic: My projects and demos
- Replies: 95
- Views: 50070
Re: My projects and demos
Hey Zorg, I have been using milkytracker, I tried some protracker clones but then with the features you get with milkytracker and it not being as complicated or ugly as openmpt lol.. I decided to use that to make the game sound assets. I can add effects/processing in lmms after. That was the plan. R...
- Tue Jul 19, 2016 10:06 am
- Forum: Games and Creations
- Topic: Analog clock
- Replies: 17
- Views: 22794
Re: Analog clock
This really should be a sticky - what a great thread. I especially like the Dali clock.
- Tue Jul 19, 2016 9:08 am
- Forum: Support and Development
- Topic: writing a line into a file..?
- Replies: 9
- Views: 4057
Re: writing a line into a file..?
-- readline = the line number you want within the file test.txt readline = 7 -- lines is the n-1 (where were are counting from 0 so its actually 2..) We are telling the for loop how many times to cycle. lines = readline - 2 -- the magic, iter is reading each line of the file in order on each cycle ...
- Tue Jul 19, 2016 7:51 am
- Forum: Support and Development
- Topic: writing a line into a file..?
- Replies: 9
- Views: 4057
Re: writing a line into a file..?
let me have a dig around... I think i have an xml writer somewhere. but to give you a hint - you look at your file. Note the line where the data that you want to mess with lives. for example in my xml writer it was at a location of line 1085 in the file. I wrote that down. Then in my lua script I lo...
- Tue Jul 19, 2016 7:06 am
- Forum: Support and Development
- Topic: writing a line into a file..?
- Replies: 9
- Views: 4057
Re: writing a line into a file..?
Open your file (read)- then you read your file into a table, you replace the portion of the table with the data you want. Then you write that table back to the file (or a new file - whatever you want). There are other things you can do. Generally I go with the brittle approach of just assuming that ...
- Tue Jul 19, 2016 12:34 am
- Forum: Support and Development
- Topic: Problem with the line color
- Replies: 7
- Views: 4070
Re: Problem with the line color
This was what I got..
- Mon Jul 18, 2016 4:45 am
- Forum: Games and Creations
- Topic: My projects and demos
- Replies: 95
- Views: 50070
Re: My projects and demos
Thanks for the pointers zorg I will take a look at the libs mentioned and go from there. But agreed it would have been a pretty cool programming exercise. I am still curious about how to write the mod file from lua - I think its a nice target because its so well documented and its pretty well define...