Author Topic: Why is it not fair? So I have been planing this game for many years.  (Read 1158 times)

nodtveidt

  • Guest
Re: Why is it not fair? So I have been planing this game for many years.
« Reply #15 on: January 28, 2012, 01:53:16 AM »
Oh, don't forget about Step 6: "ITS FINALLY f*ckING DONE AND I NEVER WANNA SEE THIS SHIT AGAIN" :)

vestcoat

  • Hero Member
  • *****
  • Posts: 3077
Re: Why is it not fair? So I have been planing this game for many years.
« Reply #16 on: January 28, 2012, 06:00:29 AM »
About the game I was working on, most of it is in skull, with all my other ideas but documents, texts, and efforts is on that drive.

I was in the proccess of backing it up. I plugged in another drive to back up this drive, and then the drive I wanted to back up just started to spark, and smoke. It rushed to plug out the computer since it would not turn off. I take out the drive all the time, and have been doing so for many years, I don't know what happen this time?

All I know is where the power supply plugs into the board was glued
to the board, one of the memory was also fried, along with the plug that goes into A drive. I do not understand why that occured???

The only other time when something like that occured was when I had a powermac and computer plugged in to the same outlit, along with the Air Conditioner during the summer. Then everything shut-off and the power supply was smoking.

I tried ordering a replacement board I all I hear is loud sounds. So I am assuming the head acutators, heads, or head reader. It makes a loud noise when trying to do the read. I could still hear the actually platters if I pick up the drive, and move it left or right a bit ( which is normal with all drives ).

I was thinking about going into it but I do not have the tools, the housing, the zero dust control area, or anti-magnentic etc. I want to send it to a place. I have seen a couple on youtube and this one proffessor works in a drive recovery place.

I do not have the cash for that, and thus that, is not going to happen anytime soon. Drive is a Maxtor 120GB.

It has to be a hardware problem, do not mind that, I will get it checked out.

You had me at "skull".
STATUS: Try not to barf in your mouth.

SamIAm

  • Hero Member
  • *****
  • Posts: 1835
Re: Why is it not fair? So I have been planing this game for many years.
« Reply #17 on: January 28, 2012, 07:54:53 AM »
Big Time. I remember reading once that about 50% of a projects time is spent debugging things.
And you -never- get -all- the bugs out. :(

This certainly goes for editing scripts and video as well. There aren't as many issues as critical as bugs in a program, but it seems like there's always more potential to spruce up certain lines or certain timings.

BigusSchmuck

  • Hero Member
  • *****
  • Posts: 3425
Re: Why is it not fair? So I have been planing this game for many years.
« Reply #18 on: January 28, 2012, 05:37:36 PM »
I dunno how many times I have heard a project was canceled because of a hard drive crash. If you are truly serious about a project, go out and spend some money on a decent backup system! Hell, it doesn't even have to be a fancy LTO tape drive, you can still get a decent external drive for around $100 even with the hard drive shortage/price spike these days. As for the drive that had all your info on it, does it even power up? If you can get it to power up, you can get a decent hard disk recovery program like stellar disk recovery and recover your data.
http://www.stellarinfo.com/ If someone glued the power plug into the motherboard, I assume they didn't know what they were doing or it was a store bought pc (don't get me started on the evils of walmart e-machines and their evil alliance with dell). Anyway, thats my 2 cents.
 

Bernie

  • Guest
Re: Why is it not fair? So I have been planing this game for many years.
« Reply #19 on: January 29, 2012, 01:23:34 AM »
You dont even need an external drive really.  A decent sized USB stick would do.

spenoza

  • Hero Member
  • *****
  • Posts: 2751
Re: Why is it not fair? So I have been planing this game for many years.
« Reply #20 on: January 29, 2012, 06:43:28 AM »
What if you manually create a linked list? How's the speed on that?
<a href="http://www.pcedaisakusen.net/2/34/103/show-collection.htm" class="bbc_link" target="_blank">My meager PC Engine Collection so far.</a><br><a href="https://www.pcenginefx.com/forums/" class="bbc_link" target="_blank">PC Engine Software Bible</a><br><a href="http://www.racketboy.com/forum/" c

Arkhan

  • Hero Member
  • *****
  • Posts: 14142
  • Fuck Elmer.
    • Incessant Negativity Software
Re: Why is it not fair? So I have been planing this game for many years.
« Reply #21 on: January 29, 2012, 09:23:57 AM »
What if you manually create a linked list? How's the speed on that?

Theyre so fast atoms split themselves.
[Fri 19:34]<nectarsis> been wanting to try that one for awhile now Ope
[Fri 19:33]<Opethian> l;ol huge dong

I'm a max level Forum Warrior.  I'm immortal.
If you're not ready to defend your claims, don't post em.

Sadler

  • Hero Member
  • *****
  • Posts: 1065
Re: Why is it not fair? So I have been planing this game for many years.
« Reply #22 on: January 29, 2012, 09:39:11 AM »
What if you manually create a linked list? How's the speed on that?

Theyre so fast atoms split themselves.

Wait, really? How does huc implement arrays?! Data structure performance is usually tied to the operations being performed on the data structure. Inserting or deleting an element in an array might be slower than a linked list, but iterating across the elements of an array should be much faster than a linked list because the elements should be adjacent in memory.

Side note: this is actually I question I like to ask prospective job candidates in interviews. My huc experience is pretty limited, but I assure you arrays are faster for element access and iteration than linked lists in just about every language I've used (C, C++, Java, C#, etc).
« Last Edit: January 29, 2012, 09:43:37 AM by Sadler »

Arkhan

  • Hero Member
  • *****
  • Posts: 14142
  • Fuck Elmer.
    • Incessant Negativity Software
Re: Why is it not fair? So I have been planing this game for many years.
« Reply #23 on: January 29, 2012, 10:08:03 AM »
oh I was joking.

Arrays are slow as dick in HuC because they screwed up the implementation.

XOR linked lists are teh fastest though.  :)

Arrays SHOULD be awesome, as theyre like the most basic, simplest data structure... but the are f*cked up.  I don't use them in code very much, and when I do, I don't access it as an array. 
[Fri 19:34]<nectarsis> been wanting to try that one for awhile now Ope
[Fri 19:33]<Opethian> l;ol huge dong

I'm a max level Forum Warrior.  I'm immortal.
If you're not ready to defend your claims, don't post em.

Sadler

  • Hero Member
  • *****
  • Posts: 1065
Re: Why is it not fair? So I have been planing this game for many years.
« Reply #24 on: January 29, 2012, 10:18:00 AM »
oh I was joking.

Arrays are slow as dick in HuC because they screwed up the implementation.

XOR linked lists are teh fastest though.  :)

Arrays SHOULD be awesome, as theyre like the most basic, simplest data structure... but the are f*cked up.  I don't use them in code very much, and when I do, I don't access it as an array. 

:oops: Sorry about that! :D Does this only apply to explictly declared arrays (ie int stuff[5]) or does it even apply if you malloc it and use pointers?

TheOldMan

  • Hero Member
  • *****
  • Posts: 958
Re: Why is it not fair? So I have been planing this game for many years.
« Reply #25 on: January 29, 2012, 11:59:24 AM »
Quote
Does this only apply to explictly declared arrays (ie int stuff[5]) or does it even apply if you malloc it and use pointers?
Roflmao....You've obviously never used HuC!
[malloc()?? What's that??There's only 8K of Ram. The overhead for a heap/stack would kill things....]

Quote
How does huc implement arrays?
As contiguous bytes of memory. Just like most compilers.
The problem is a combination of things:
1) The CPU is byte oriented. Any address updates (ie, offsets) are done via additions. Yes, there are index registers.. But Huc doesn't use them for arrays :(
2) The CPU has -very- limited indirection instructions. You have to have the address in the zero page area, and do the indirection from there.

Which means, accessing array[5] goes something like:

...load low byte of array address.
...save in zp array addresss
...load high byte of array address
...save in zp array address
...load low byte of offset (5)
...add to zp address low
...save zp address low
...load high byte of offset
...add to zp address high (with carry)
...save zp address high
...indirect load of low byte of array entry
... save it where you can use it.
... add 1 to zp address low
... save zp address low
... add 0 to zp address high (with carry)
... save zp address high
... indirect load of high byte of array entry
... save it where you can use it.


There are a few things you can do to speed it up, but it still takes quite a few instructions to do an array access.
And that's not even discussing the screwed up way HuC actually does it :)

When I do things that need arrays in assembler, I split the ints into high/low bytes. That lets me use an index register as the offset (and allows me to reach 256 bytes, not just 128 for ints) from known addresses. Indexed offsets are faster than indirection (which is what HuC uses everywhere an array is involved), and because things are split, I don't have to update the offset register/base address.

.................
And before everyone starts picking on HuC, remember this: HuC is "small C", not a complete C implementation. It's based on code someone wrote for a 1 semester compiler class. And it shows.

Quote
I assure you arrays are faster for element access and iteration than linked lists in just about every language I've used
I vaguely remember (a long time ago) writing assembler stuff for a 68xxx processor. It had a very odd syntax for certain operations:     ldi  [var],reg
That loaded the value at the address given by reg bytes past the address in var. A 2-level offset indirect. -That- made linked lists a breeze, and bloody fast, too :) Shame I we don't see things like that in use anymore :(



Arkhan

  • Hero Member
  • *****
  • Posts: 14142
  • Fuck Elmer.
    • Incessant Negativity Software
Re: Why is it not fair? So I have been planing this game for many years.
« Reply #26 on: January 29, 2012, 11:59:52 AM »
HAHAHAHAHA pointers in HuC.  You're hilarious!!!!!

=3

Basically, you use HuC to prototype out the game quickly with the built-in library and to organize your thoughts/files/entities....then you go in and hand-optimize it all with asm, because the features of C that make C useful vs. ASM, are totally f*cked.

No structs, jacked pointers, arrays that are slower than the losers at the special olympics, and all kinds of other little "what the hell!?"'s that make it suck really bad.



[Fri 19:34]<nectarsis> been wanting to try that one for awhile now Ope
[Fri 19:33]<Opethian> l;ol huge dong

I'm a max level Forum Warrior.  I'm immortal.
If you're not ready to defend your claims, don't post em.