J JoeMaximum Member Dec 11, 2007 #121 Wow guys this is going very well. I've just tried your latest version, and wow this is drawing fast. Amazing job you made all of you. I started this with neil but didnt have much time to work on it, and didnt really had a way of moving pixel fast like you did. This will be the BEST falling sand game for the pocket pc. Continue your awesome work guys !
Wow guys this is going very well. I've just tried your latest version, and wow this is drawing fast. Amazing job you made all of you. I started this with neil but didnt have much time to work on it, and didnt really had a way of moving pixel fast like you did. This will be the BEST falling sand game for the pocket pc. Continue your awesome work guys !
N neilnapier Active Member Licensed User Longtime User Dec 11, 2007 #122 When adding the interface into it everything flickers every ms. Why does it do it with the interface and not without (is it due to the memory it takes up?) EDIT: When I press cthe clear button it stops flickering but(due to me not resetting it, I know how to do that) doesn't clear anything. It is weird that that stops it. Last edited: Dec 11, 2007
When adding the interface into it everything flickers every ms. Why does it do it with the interface and not without (is it due to the memory it takes up?) EDIT: When I press cthe clear button it stops flickering but(due to me not resetting it, I know how to do that) doesn't clear anything. It is weird that that stops it.
agraham Expert Licensed User Longtime User Dec 11, 2007 #123 Colin - the bad news from Erel is that only one dimensional arrays can be passed to a library. You will need to pass in several "parallel" arrays of rule data indexed by a unique index for a particular interaction as I assume that rule[5,6] may not be the same as rule[6,5] or is it? Maybe limit it to 9 colours plus background and make the index rule[x*10+y] leaving unused gaps in the array if fewer colours are used. Also I see from the Bugs forum that you have found the colour rounding problem - I was going to mention that but you got there first. In itself it is not a problem. I was going to suggest that the colours are passed as an array, Background at 0, then the library can build a Color object array of exact colurs by setting and getting test pixels of each colour. The real problem would be reversing from a Color object to an array index. I'm thinking about an efficient way to do that.
Colin - the bad news from Erel is that only one dimensional arrays can be passed to a library. You will need to pass in several "parallel" arrays of rule data indexed by a unique index for a particular interaction as I assume that rule[5,6] may not be the same as rule[6,5] or is it? Maybe limit it to 9 colours plus background and make the index rule[x*10+y] leaving unused gaps in the array if fewer colours are used. Also I see from the Bugs forum that you have found the colour rounding problem - I was going to mention that but you got there first. In itself it is not a problem. I was going to suggest that the colours are passed as an array, Background at 0, then the library can build a Color object array of exact colurs by setting and getting test pixels of each colour. The real problem would be reversing from a Color object to an array index. I'm thinking about an efficient way to do that.
C colin9876 Active Member Licensed User Dec 11, 2007 #124 Neil, the flickering problem ur have with the interface version is due to an error in the filling=false code. If filling =false it constantly draws a invisible clear circle on the foreground. Im changing all that right now so just hold on! Im recontemplating the rules array too. It would have been my prefered method but now we already have so much of the info going with each pixel (e.g.pcolor,pspread) might be easier to have one more pchangeto() array that says which color it reacts with and what it changes to then we r done! Last edited: Dec 11, 2007
Neil, the flickering problem ur have with the interface version is due to an error in the filling=false code. If filling =false it constantly draws a invisible clear circle on the foreground. Im changing all that right now so just hold on! Im recontemplating the rules array too. It would have been my prefered method but now we already have so much of the info going with each pixel (e.g.pcolor,pspread) might be easier to have one more pchangeto() array that says which color it reacts with and what it changes to then we r done!
agraham Expert Licensed User Longtime User Dec 11, 2007 #125 colin9876 said: one more pchangeto() array that says which color it reacts with and what it changes to then we r done! Click to expand... I think that needs two more arrays - one for the reacting colour and one for the result. That would only allow one interaction per particle however. Don't worry about how many arrays are passed, there is no limit, as far as I know, to the number of parameter that can be passed to a library. Generic rules are possible if we can find an efficient back conversion from a Color to an index.
colin9876 said: one more pchangeto() array that says which color it reacts with and what it changes to then we r done! Click to expand... I think that needs two more arrays - one for the reacting colour and one for the result. That would only allow one interaction per particle however. Don't worry about how many arrays are passed, there is no limit, as far as I know, to the number of parameter that can be passed to a library. Generic rules are possible if we can find an efficient back conversion from a Color to an index.
N neilnapier Active Member Licensed User Longtime User Dec 11, 2007 #126 I sorted it by putting the line: Code: Copy BurningSand.FErase (0,0,BurningSand.Width, BurningSand.Height) into the App_Start sub. Then it stops flickering. Also the 9 colours suggestion isn't very good. How are you supposed to mod if you can only use 9 elements max?
I sorted it by putting the line: Code: Copy BurningSand.FErase (0,0,BurningSand.Width, BurningSand.Height) into the App_Start sub. Then it stops flickering. Also the 9 colours suggestion isn't very good. How are you supposed to mod if you can only use 9 elements max?
C colin9876 Active Member Licensed User Dec 11, 2007 #127 Neil, ur obviously off there on ur interface - which is great, there are a few inefficiencies, which I can just change for u & will give a faster version. Can u post ur latest version, with all the libs, images, and the bits uve added and I'll make the changes and zip it back to u. P.s. Dont worry u'll have enough colors! Last edited: Dec 11, 2007
Neil, ur obviously off there on ur interface - which is great, there are a few inefficiencies, which I can just change for u & will give a faster version. Can u post ur latest version, with all the libs, images, and the bits uve added and I'll make the changes and zip it back to u. P.s. Dont worry u'll have enough colors!
N neilnapier Active Member Licensed User Longtime User Dec 11, 2007 #128 He is the new version. Here are the glitches The pens go over icons, You have to pick water before wall will work Goes down too far Clear button doesn't clear water I don't like the way I have created the groups. The pen sizes don't effect Water. Also I have noticed that I added \1.bmp as the save screen thing. This sould be changed to \Start.bmp. Just so that you don't have to make it post it then post it again. Also, how possible do you think it would be to load a saved picture? Last edited: Dec 11, 2007
He is the new version. Here are the glitches The pens go over icons, You have to pick water before wall will work Goes down too far Clear button doesn't clear water I don't like the way I have created the groups. The pen sizes don't effect Water. Also I have noticed that I added \1.bmp as the save screen thing. This sould be changed to \Start.bmp. Just so that you don't have to make it post it then post it again. Also, how possible do you think it would be to load a saved picture?
J JoeMaximum Member Dec 11, 2007 #129 ImagelibEx.dll dont work on my device. I have PPC2003 and installed the basic4ppc 5.80 on the device. do i need to install the .net cf 2 ?
ImagelibEx.dll dont work on my device. I have PPC2003 and installed the basic4ppc 5.80 on the device. do i need to install the .net cf 2 ?
N neilnapier Active Member Licensed User Longtime User Dec 11, 2007 #130 Never tried BS on my PPC since I added that, yes that is weird. using the nonEx version as well it comes up with Error loading Program Line Number: 8 error description: NullReferenceException. Last edited: Dec 11, 2007
Never tried BS on my PPC since I added that, yes that is weird. using the nonEx version as well it comes up with Error loading Program Line Number: 8 error description: NullReferenceException.
J JoeMaximum Member Dec 11, 2007 #131 Will install .Net CF 2.0 and see if it work, i'll give you update.
N neilnapier Active Member Licensed User Longtime User Dec 11, 2007 #132 I have CF 2.0 . It still does the same as what happens with you.
J JoeMaximum Member Dec 11, 2007 #133 Yeah, seem i had it too, so must have to do with imagelibex.dll the error its giving me is: "Error loading program. \carte de stockage\PocketBS\ImageLibEx.dll"
Yeah, seem i had it too, so must have to do with imagelibex.dll the error its giving me is: "Error loading program. \carte de stockage\PocketBS\ImageLibEx.dll"
J JoeMaximum Member Dec 11, 2007 #134 Ohhh, i got it now. Add this file "Pocket Burning Sand.exe.config" were you put the .exe on you PDA. This should work, if not im gonna send you my version!
Ohhh, i got it now. Add this file "Pocket Burning Sand.exe.config" were you put the .exe on you PDA. This should work, if not im gonna send you my version!
N neilnapier Active Member Licensed User Longtime User Dec 11, 2007 #135 Where is that file? Also post your version anyway. Is it written in BASIC4PPC or that other one that you use?
Where is that file? Also post your version anyway. Is it written in BASIC4PPC or that other one that you use?
J JoeMaximum Member Dec 11, 2007 #136 It was in the same place where i compiled it. (I recompiled it)
agraham Expert Licensed User Longtime User Dec 11, 2007 #138 Colin - I think that I have cracked the efficient reverse colour lookup by using a hashtable so no need for "Condense" functions. I can accept an array of colours and a count and you can reference colours by their index in the array in the rules and I can take care of the actual colours on the device (I think!). I can also provide a method that returns the actual device RGB value if you need it for anything.
Colin - I think that I have cracked the efficient reverse colour lookup by using a hashtable so no need for "Condense" functions. I can accept an array of colours and a count and you can reference colours by their index in the array in the rules and I can take care of the actual colours on the device (I think!). I can also provide a method that returns the actual device RGB value if you need it for anything.
J JoeMaximum Member Dec 11, 2007 #139 Here is the complied device .exe with the .config. If you need everything else, just say, i'll send them to you. Last edited: Dec 11, 2007
Here is the complied device .exe with the .config. If you need everything else, just say, i'll send them to you.
N neilnapier Active Member Licensed User Longtime User Dec 11, 2007 #140 It works except when Itry to open the file on the PPC it says that there is not enough memeory to finish opening it. I have plently space left and only that file viewer open. EDIT: It doesn't work on WinCE Paint either so I think there is something wrong with the file on PPC. Last edited: Dec 11, 2007
It works except when Itry to open the file on the PPC it says that there is not enough memeory to finish opening it. I have plently space left and only that file viewer open. EDIT: It doesn't work on WinCE Paint either so I think there is something wrong with the file on PPC.