This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Messages - cyanophycean314
Pages: 1 ... 3 4 [5] 6 7 ... 25
61
« on: July 24, 2012, 08:39:11 pm »
I use Notepad++ and nspire_emu! I write my own C++ program to format the file. 3rik, I'll give your method a try. As long as you didn't get a memory error, that method will work. I still wish that loadstring thing worked though, it would've been nice. EDIT: I get a memory error in nspire_emu , even using 3rik's shrunken dictionary. Oh, and 3rik's program also causes a memory error in nspire_emu
62
« on: July 23, 2012, 09:14:47 pm »
@3rik: Your solution is interesting, but I think memory constraints will occur... I'll give it a try if my current attempt fails.
Right now, I have around 1158 strings with format: words1 = 'aa;aah;aahed;' words2 = 'aahing;aardvark;' The problem is that I want to go through the different strings. My current code is this:
function checkWord(word) local letterkeys = {1,72,129,241,310,360,402,437,479,533,541,551,582,647,679,720,822,827,895,1019,1076,1112,1130,1152,1153,1155} jstart = letterkeys[string.byte(word) - string.byte('a') + 1] for i = jstart,1158 do loadstring("abc = words"..i) if string.find(abc,word) then return true end end return false end The letterkeys indexes a place for each letter, so the searching will go faster. Then it starts at that index and goes through each string and searches it using the string.find().
The loadstring thing doesn't work. It's purpose is to try and execute
abc = words12 or
abc = words13 depending on the value of i. This way I can avoid a big table that'll probably give me memory errors. It's basically like indexing without a big master table without a huge variable.
I'm not too familiar with loadstring, but it seems very powerful if it can be used like this.
63
« on: July 23, 2012, 08:59:42 pm »
CX compatibility? That would be really nice.
64
« on: July 23, 2012, 08:07:28 pm »
That looks really cool, especially the animation of hitting it. Great physics btw!
65
« on: July 23, 2012, 09:07:34 am »
Thanks. What exactly do you mean when you said to use semicolons to split words? To select words, you press the tab button, and then use the numpad to move along the board, selecting letters as you go. Then you release tab, and that's your word. The program checks if you've already used that word. Currently this is just a hard-coded grid, but I'm working on random generation (balancing it is kinda tricky...). Edit: Woah, it's my 300th post.
66
« on: July 23, 2012, 09:03:28 am »
Thanks DJ_O! I thought voting should've ended yesterday and the results would come out?
67
« on: July 21, 2012, 10:02:21 am »
Hmmm.... maybe this has something to do with sacrificing to let other people know in front of you what they're wearing?
68
« on: July 21, 2012, 09:59:42 am »
Thanks Loulou for the explanation and suggestions. I'll try splitting up my table into smaller ones, probably divided by letters. Or I could also use strings like you did. I planned on using binary search to go through my list and find the word, but now I just realized that there were string search functions provided by Lua.
69
« on: July 20, 2012, 09:47:49 pm »
Configuring nspire_emu for the first time took SO LONG!!
70
« on: July 19, 2012, 09:27:33 pm »
This looks amazing. Hope it can come through and unleash Advance Wars!
71
« on: July 18, 2012, 05:05:33 pm »
SNES would be very awesome! Then I could finally have the time to play its great RPGs: Final Fantasy, Secrets of Mana, Chrono Trigger
72
« on: July 11, 2012, 08:53:29 pm »
Is there any approximation as to when voting ends and/or the results will come out?
73
« on: July 10, 2012, 11:18:37 am »
Hmm... That's interesting...
74
« on: July 10, 2012, 11:14:36 am »
Just wondering, what exactly did Sircmpwn do? I wasn't here for that I think.
75
« on: July 10, 2012, 11:11:06 am »
Thanks. I spent a lot of time nailing down the little explosions, the bombs, the title shooting, and other little pretty things.
Pages: 1 ... 3 4 [5] 6 7 ... 25
|