Show Posts

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
Humour and Jokes / Re: Funny #omnimaga quotes (NSFW)
« on: June 10, 2015, 10:19:48 pm »
Quote
alberthro   what kind of engineering summer program is it? :S
[9:56:27 PM]   pimathbrainiac   one where I go to a college and do projects and take some classes
[9:56:57 PM]   alberthro   niceeee
[9:57:01 PM]   alberthro   which college?
[9:57:43 PM]   pimathbrainiac   Rose Hulman (in Indiana) and mix of CS/EE/ME stuff
[9:58:29 PM]   alberthro   RHIT... only one letter away from a certain other interesting institution  ;)
[9:58:56 PM]   pimathbrainiac   which one?
[9:59:26 PM]   c4ooo   The one in the toilet  :P
[9:59:26 PM]   alberthro   The *HIT (South Harmon Institute of Technology)  :P
[9:59:37 PM]   c4ooo   o I misinterpreted that
(Emphasis added)

182
And when I did it, headers didn't count.
What? ???

183
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
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
Can you actualy try to run my actual code? I dont have a C# compiler and was doing stuff with my knolage of java.  :hyper:
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
This is a very useful tool that I might start using.  :thumbsup: 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.  :P
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. :)
Code: [Select]
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
Code: [Select]
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
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
-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  :hyper:

189
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". :P
And no that was not a direct quote from irc, I forgot when the original was said  :P

190
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

I lolled at this gif XD. But yea, RPGs are hard projects, hopefully I will be able to someday play a working version of this :)

192
TI Z80 / Re: [Axe] Lazer II
« 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
Humour and Jokes / Re: Funny #omnimaga quotes (NSFW)
« on: June 01, 2015, 09:59:56 pm »
This:
Spoiler For Spoiler:
Quote
[9:40:02 PM]   pimathbrainiac   hi
[9:40:05 PM]   geekboy   no
[9:41:28 PM]   *   pimathbrainiac goes off to die in a hole due to geekboy's disapproval
[9:41:43 PM]   iMo_Inx   hi
[9:41:49 PM]   *   Iambian tosses cherries into the hole
[9:42:01 PM]   *   pimathbrainiac tosses Iambian one of said cherries
[9:42:17 PM]   *   alberthro kicks pimathbraniac into a hole
[9:42:35 PM]   iMo_Inx   isnt he in a hole already
[9:42:47 PM]   *   alberthro kicks pimathbraniac into a deeper hole
[9:42:49 PM]   *   Iambian leaps to catch the returned cherry, then offers thanks for sharing the bounty while nomming with reckless abandon
[9:43:41 PM]   *   iMo_Inx is in awe of iambian's eloquent speak
[9:44:29 PM]   Iambian   It's a running gag
[9:45:08 PM]   *   c4ooo helps pimath out of hole
[9:45:10 PM]   iMo_Inx   ?
[9:45:37 PM]   *   geekboy placed pimath inside a bowl and surounds him with cherries
[9:45:40 PM]   *   geekboy waits
[9:45:47 PM]   Iambian   Whenever pimathbrainiac tosses me a delicious crimson orb of cherryness...
[9:45:48 PM]   Iambian   o.0
[9:45:50 PM]   Iambian   0.o
[9:45:53 PM]   *   c4ooo converts the hole into a rocket turnent and shoots geekboy
[9:45:56 PM]   Iambian   0.0
[9:46:13 PM]   iMo_Inx   ahhh
[9:46:50 PM]   *   Iambian rushes to nom the delicious cherries in the bowl without care or constraints to either good sense nor the laws of physics
[9:48:17 PM]   *   c4ooo eats gmo cherries that where grown in less time then real ones and sticks tonge out at Iambian
[9:48:59 PM]   Iambian   I like my all-natural hypercherries, grown right in Cthulhu's back yard!
[9:49:16 PM]   *   iMo_Inx wonders how much less time
[9:49:33 PM]   *   c4ooo while Iambian is distracted, i shoot him with my rocket turrent too smiley
[9:49:55 PM]   iMo_Inx   theres no n in turret
[9:51:31 PM]   *   c4ooo cries at being betrayed by pimath "no pimath you cant do this to me, why did you leave the turrent!"
[9:52:29 PM]   *   iMo_Inx sends notice about c4ooo's turrenting because it's too illegal

194
Community Contests / Re: Code Golf - The Reboot #1
« on: June 01, 2015, 03:36:53 pm »
I was just about to start this  :P but o well we all sorta "restarted" this on irc. Can I do reboot #2?  :3

195
Yes it would  ;D  as DJ_ O has said befor, it would be nice if such content had its own sub thread  :thumbsup:

Pages: 1 ... 11 12 [13] 14 15 ... 17