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 - c4ooo
Pages: 1 ... 11 12 [13] 14 15 ... 17
181
« on: June 10, 2015, 10:19:48 pm »
182
« on: June 10, 2015, 09:55:19 pm »
And when I did it, headers didn't count.
What?
183
« on: June 10, 2015, 05:27:14 pm »
If somehow not available, this may be used instead, but use the byte count, not character count.
@Juju 's Counter counts in bytes AFIK. The size of the program header for TI-BASIC entries should not be added to the scored size. Source means "length of code", not "file size stored in memory"; most languages have a header hundreds of bytes long on their files, and yet we don't count it. This gives an unfair advantage to non-calculator entries, whose headers are ignored.
I propose that TI-BASIC entries are counted as the size of the program in the [2nd][MEM] menu, minus the length of the name, minus nine bytes.
True, i agree that headers should not count, including headers for shells like Doors and Mirage. I'd like to give it a go!
No one is holding you back
184
« on: June 08, 2015, 07:21:27 am »
Hmm thats weird. Can i see what you are trying to convert? Also to get your format just replace the spaces between the hexes with a "][". And it does not work with spaces bigger then 8*8, its not ment to.
185
« on: June 08, 2015, 06:43:23 am »
Can you actualy try to run my actual code? I dont have a C# compiler and was doing stuff with my knolage of java. I have become interested if it will actually work, and if it does work if the output would is correct, or if it is perhaps inverted or a shade off. If the code actually works i can explain it to you later.
186
« on: June 07, 2015, 03:45:01 pm »
This is a very useful tool that I might start using. The inconvenient part thou is that it runs on a PC, while the rest of the code is [probably, at least for me) on a calculator. Also, your algorithem to convert pixels to hex seems a bit inconvenient. Idk what is realy going on here (always was a java person and never worked with the PDN API), but I will see if I can try to optimize some of the plugin. Edit: Here is an optimized version of the plugin. I know the algorithm is error free because i use it in a small pixel to hex converter on my calc, however it might contain syntex errors. bool done = false; void Render(Surface dst, Surface src, Rectangle rect) { Rectangle selection = EnvironmentParameters.GetSelection(src.Bounds).GetBoundsInt(); ColorBgra CurrentPixel; int itr = 3; string hex1; string hex2; string hexi = "0123456789ABCDEF"; int tempInt1; int tempInt2; for (int y = selection.Top; y < selection.Bottom; y++) { if (IsCancelRequested) return; for (int x = selection.Left; x < selection.Right;x++) { CurrentPixel = src[x,y]; int rgb = 4-((CurrentPixel.R+CurrentPixel.G+CurrentPixel.B)/192); if(rgb>1){ tempInt1+= Math.pow(2,itr) } if(rgb==1||rgb==3){ tempInt2+= Math.pow(2,itr) } if(itr == 0){ irt = 3; hex1 += hexi[tempInt1]; hex2 += hexi[tempInt2]; temp1 = 0; temp2 = 0; } itr--; } } if(done == false) { System.IO.File.WriteAllText(@"C:\Users\user\Desktop\Dota Duelz\hex.txt", "["+hex1+" "+hex2+"]"); done = true; } }
And here is a more optimized version, has less of a chance of working then first version, remember that none of this is actually tested. :p bool done = false; void Render(Surface dst, Surface src, Rectangle rect) { Rectangle selection = EnvironmentParameters.GetSelection(src.Bounds).GetBoundsInt(); ColorBgra CurrentPixel; int itr = 3; string hex1; string hex2; string hexi = "FEDCBA9876543210"; byte temp1; byte temp2; for (int y = selection.Top; y < selection.Bottom; y++) { if (IsCancelRequested) return; for (int x = selection.Left; x < selection.Right;x++) { CurrentPixel = src[x,y]; byte rgb = (CurrentPixel.R+CurrentPixel.G+CurrentPixel.B)/192; temp1=((rgb >> 1) + temp1) *2; //might have to change to temp1=((rgb & 2 >> 1) + temp1) *2; temp2=((rgb & 1 )+ temp2) *2; if(itr == 0){ irt = 3; hex1 += hexi[temp1]; hex2 += hexi[temp2]; tempInt1 = 0; tempInt2 = 0; } itr--; } } if(done == false) { System.IO.File.WriteAllText(@"C:\Users\user\Desktop\Dota Duelz\hex.txt", "["+hex1+" "+hex2+"]"); done = true; } }
187
« on: June 06, 2015, 02:51:50 pm »
All in favor of making Juju's counter the official counter for all non-calculator languages, say "aye." All in favor of counting assembly as binary size, say "aye aye." All in favor of counting TI-Basic and Axe as on-calc source size, say "aye aye aye." All in favor of counting The Challenge Creator choosing the counting method, say "aye aye aye aye." (all on separate lines of course)
My response: aye. aye aye. aye aye aye.
Aye Idk Idk Idk IDK Aye Aye Aye Aye
188
« on: June 05, 2015, 09:36:45 pm »
-snip-
This shows that balancing is hard. For example, using point one or two would then in turn backfire on asm. But which method to use is not my main argument, what is is my suggestion that the hoster could chose
189
« on: June 05, 2015, 09:20:44 pm »
There are several ways to score an entry that are generally used: 1) size in chars of source code 2) number of bytes in source code And finally 3) output size in bytes of final compiled program. I think that the host should have a choice as to what scoring method to use.
I don't think number 3 is a good idea, since some languages have distinct advantages over others in binary size.
I recall some one saying over irc (forgot who might have been you) that "choosing your language is part of the puzzle, each has its pros and cons". And no that was not a direct quote from irc, I forgot when the original was said
190
« on: June 05, 2015, 09:12:33 pm »
There are several ways to score an entry that are generally used: 1) size in chars of source code 2) number of bytes of source code And finally 3) output size in bytes of final compiled/fully runnable program. (If your language is interpreted, like windows batch, use method 1 or 2, preferable 2) I think that the host should have a choice as to what scoring method to use.
191
« on: June 04, 2015, 08:26:45 pm »
I lolled at this gif . But yea, RPGs are hard projects, hopefully I will be able to someday play a working version of this
192
« on: June 02, 2015, 04:09:38 pm »
Well as I said before, I rewrote practically everything, and I decided to post a video of what I have so far. The main menus have a dark-greyscale theme, with the cursor automatically resizing using interpolation to fit the selected text. The file io works, (it opens files but can't save so should I say half works?) and the greyscale tilemap was loaded from from a file. My guitar is seen in the background. Hopefully the attached Vidio will work and will be of high enofe quality. If not I will edit the post. The main menu, note curser The tilemap engine. The big white box is the curser. The curser can be used to spin mirrors, no firing lasers yet thou :p Edit (not rly) I will just post pictures. Edit 2: Lazer 1 just reached 255 downloads, a nice round (in binary) clean number. I guess that's a landmark.
193
« on: June 01, 2015, 09:59:56 pm »
194
« on: June 01, 2015, 03:36:53 pm »
I was just about to start this but o well we all sorta "restarted" this on irc. Can I do reboot #2?
195
« on: May 28, 2015, 07:33:21 pm »
Yes it would as DJ_ O has said befor, it would be nice if such content had its own sub thread
Pages: 1 ... 11 12 [13] 14 15 ... 17
|