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 - epic7

Pages: 1 ... 32 33 [34] 35 36 ... 161
496
Miscellaneous / Re: Christmas - what did you get?
« on: December 25, 2012, 02:01:26 pm »
Bazinga shirt? :P
* epic7 wants

497
Calculator C / Re: Arrays interfering with each other
« on: December 25, 2012, 11:03:57 am »
Doesn't fix any problems, but nice catch nevertheless :P

498
Miscellaneous / Re: Christmas - what did you get?
« on: December 25, 2012, 10:14:09 am »
The question is:

Which member was on its final day on Omnimaga yesterday as a direct result from his received gift? :P  (especially if someone got WoW, LoL or Minecraft)
Someone was banned? O.O

499
Miscellaneous / Re: Christmas - what did you get?
« on: December 25, 2012, 09:47:14 am »
Printer, office chair, a new razor (blade), a new razor (scooter), lots and lots of maple syrup, some other stuff, and an EPIC STEPHEN HAWKING T-SHIRT!

500
Calculator C / Arrays interfering with each other
« on: December 24, 2012, 10:02:06 pm »
I'm experiencing some weird error... and my best guess would be that these two arrays are messing up each other.

So I have two portions of code.
This one:

   sprintf(recipes[18].name, "Stock ");
   recipes[18].power = 0;


And this one
               
   int invmenu[] ={352, 352, 352, 352, 352, 352, 352, 352, 352, 352, //352 == bedrock
               352, COAL, IRON, GOLD, PLATINUM, SAPPHIRE, EMERALD, RUBY, DIAMOND, 352,
               352, 0, 0, 0, 0, 0, 0, 0, 0, 352,  //0 == stone
               352, 0, 0, AIR, 0, 0, 0, 0, 0, 352,
               352, 0, 0, AIR, 0, 0, 0, 0, 0, 352,
               352, 0, 0, AIR, 0, 0, 0, 0, 0, 352,
               352, 352, 352, 352, 352, 352, 352, 352, 352, 352};


I then display the invmenu array (which contains tilemap data), and then output values from the recipe array.


for(ly = 0; ly <= 7; ly++)
{
   for(lx = 0; lx <= 10; lx++)
   {
      tile.x = lx*32;
      tile.y = ly*32+16;
      tile.offset_x = invmenu[ly*10+lx];
      if(tile.offset_x == AIR)
      {
         //stuff that replaces air with the "STOCK" tile
      }
      drawImageSubrect(&tile, s);
      tile.offset_y = 0;
   }      
}

sprintf(GUI, "%sDrill", recipes[18].name);
drawStr(133, 116, GUI, 1, 1, green, s);


The result is this:

The invmenu[] data is fine, but the data from recipes[] is messed up.
Now when I put the portion of code with invmenu[] before the part with recipes[], it displays this:

So this time, the recipes[] data outputs fine, but invmenu[] is messed up.

So it seems that one array messes up the other...
When the part with invmenu[] comes first, only recipes[] works.
When the part with recipes[] comes first, only invmenu[] works :P

Commenting out the code between the assigning and the output doesn't get rid of this weird effect...

501
Computer Projects and Ideas / Re: Sorunomes IRC Bots
« on: December 24, 2012, 07:04:08 pm »
Yay! A time machine!
* epic7 is watching back to the future atm

What's md5?

502
Ndless / Re: General Ndless Questions and Support
« on: December 24, 2012, 04:15:22 pm »
Does ndless support fscanf?
It throws an implicit declaration, and it also isn't included here

503
Ndless / Re: General Ndless Questions and Support
« on: December 24, 2012, 03:39:29 pm »
My new code is

   int map[10120];
   //stuff
   FILE * f = fopen("/documents/miner/mapdata.tns", "w+");
   for(j = 0; j < 10120; j++)
      fprintf(f, "%d ", map[j]);
   fclose(f);
   //refresh_osscr(); removing this line fixes it


And that works. So it seems that refresh screws it up. Now how do I read this back into the array?

504
Calculator C / Re: Weird error: sprintf
« on: December 24, 2012, 12:40:58 pm »
Lolwut? O.O
I was trying to debug float values too, and was also getting a similar wierd problem D:

505
Other Calc-Related Projects and Ideas / Re: OmniRPG - Storyline Discussion
« on: December 23, 2012, 11:03:52 pm »
*meets Sorunome*
Player: AAAHHH! A TALKING HORSE!

506
General Calculator Help / Re: Overclock an 84+/SE?
« on: December 23, 2012, 08:12:17 pm »
I have no idea myself, but I found somewhere that says
Quote
The Z80 in the TI-83 runs at a low 6 Mhz and is underclocked. According to the Z80 user Manual, the Z80 is capable of running at 20Mhz without exceeding the operating temperatures. So, it is possible to make your TI-83 run at 20 MHz. This isn't a smart thing to do though, the LCD driver wouldn't be able to handle all the instructions because it would still run at the same speed as it used to do, thus resulting in f*cked up display. It is possible to overclock your calc to 8 or 10 Mhz, but you might want to use a switch to switch between normal and boosted speed (overclocking drains your batteries faster than normal speed).

507
Other Calculators / Re: People react to your calculator...
« on: December 23, 2012, 04:41:54 pm »
I go onto people's calculators and type
:While 1
:Disp rand
:End
And then watch them be totally amazed.

508
Introduce Yourself! / Re: New and looking for advice
« on: December 23, 2012, 04:23:15 pm »
Welcome!
!peanuts
Yeah, nclock will do a single clock on the screen, but I don't believe it has a stopwatch, and it only has one clock

509
Art / Re: Extent of Copyright Laws with sprites
« on: December 23, 2012, 04:02:55 pm »
I'm using textures for my game directly copied from the actual one O.O
Might have a problem there :P

510
TI-Nspire / Re: DrillMiner
« on: December 22, 2012, 11:57:45 pm »
Triple post, but I have a huge amount of stuff to post :P
I've decided to change the texture pack, which would make it easier for me too use some more ores, since the old one only had 5.
So I've changed the texturepack to Faithful 32x32 and I also made my own platinum ore. Here's how it looks


And since the textures are stored externally, anybody could use modify the terrain file to make a custom texture pack.
The terrain file for the game looks like this so far:


I've also decided to do crafting instead of buying the upgrades
I don't know how fuel will work... maybe some kind of coal conversion or something
So here are the tentative crafting designs
Textures were taken from some site that had a bunch of Motherload pics
I'll probably change them since the values are kinda random :P

Ores:
Exchange rate:
Coal = --
Iron = 2 Coal (1:2)
Gold = 1.66 Iron (3:5)
Platinum =  2.5 Gold (2:5)
Sapphire = 3 Platinum (1:3)
Emerald = 2.66 Sapphire (3:8)
Ruby = 2.5 Emerald (2:5)
Diamond = 4 Ruby (1:4)

Drills:

Recipe:
O
OOO
OOOOO
OOO
O

Replace O with mineral

Stock drill = 100 frames per block of stone

Gold drill = 85 frames per block of stone


Platinum drill = 70 frames per block of stone

 
Sapphire drill = 55 frames per block of stone


Emerald drill = 40 frames per block of stone


Ruby drill = 30 frames per block of stone


Diamond drill = 15 frames per block of stone



Hulls:

Recipe:
OOOO
O    O
O    O
OOOO

Replace O with mineral

Stock hull- 10 HP

Gold hull- 17 HP


Platinum hull- 30 HP

 
Sapphire hull- 50 HP


Ruby hull- 80 HP


Emerald hull- 120 HP


Godlike hull – 256 HP

Special Recipe:
DERED
DD  DD
SR   RS
DD  DD
DERED


Fuel tanks:

Stock tank = 10 L

Medium tank = 15 L

IIIII
I   I
IIIII

Large tank = 25 L

IIIII
I   I
IIIII
I   I
IIIII

Huge tank = 40 L

GGGGG
G      G
GGGGG
G      G
GGGGG

Gigantic tank = 60 L

IRGRI
I     I
I     I
I     I
IRGRI

Titanic tank = 100 L

EEEEE
E     E
R     R
E     E
EEEEE

Multi-tank = 170 L

DDDDD
S  D S   
SSDSS
S  D  S
DDDDD

Pages: 1 ... 32 33 [34] 35 36 ... 161