Register | Login
Views: 19364387
Main | Memberlist | Active users | ACS | Commons | Calendar | Online users
Ranks | FAQ | Color Chart | Photo album | IRC Chat
11-02-05 12:59 PM
Acmlm's Board - I2 Archive - - Posts by Parasyte
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
User Post
Parasyte

Bullet Bill
Level: 35

Posts: 262/514
EXP: 267348
For next: 12588

Since: 05-25-04

Since last post: 104 days
Last activity: 32 days
Posted on 02-02-05 04:42 AM, in new editor, bring change of pants Link
There's quite a lot of 'whitespace' on the Item Stats dialog, though. I'd estimate that only roughly 30% of the space is actually used. Hell, that whole empty bottom portion accounts for 17.5%, itself (not including anything to the left of the Apply/Cancel buttons).

Oh yes, and I would like to mention that this is not about making it "pretty". I honestly don't have much opinion about how it looks. How it WORKS on different computer setups though, that's where the problems come into play.
Parasyte

Bullet Bill
Level: 35

Posts: 263/514
EXP: 267348
For next: 12588

Since: 05-25-04

Since last post: 104 days
Last activity: 32 days
Posted on 02-03-05 05:24 PM, in To shut down, or not to shut down? Link
I leave both of my machines running (GNU/Linux Slackware 10, and Windows XP Professional Service Pack 2) at all times. The only real problem I have with it is that Windows wants me to restart (or forces me to do so) at an interesting interval of ~4-5 weeks. This upsets me because, as I have mentioned, I wish to keep the machine running at all times.

As of the time of this post, my Windows machine has been running approximately 1 week, 5 days, 18 hours, 28 minutes, and 23 seconds. My GNU/Linux machine has been running for approximately 2 weeks, 6 days, 16 hours, 12 minutes, and 30 seconds. Just about the same amount of time the Operating System has been installed, give or take a few days (in this case, it's certainly "give" -- but you get the idea).
Parasyte

Bullet Bill
Level: 35

Posts: 264/514
EXP: 267348
For next: 12588

Since: 05-25-04

Since last post: 104 days
Last activity: 32 days
Posted on 02-04-05 04:14 AM, in new editor, bring change of pants Link
I must insist that everyone reread my posts. (And even that little IRC clipping, if you wish). If anyone is over-reacting, it would have to be JCE. Criticism comes in many forms. It can't often be sugar-coated just to make it any easier to bear. I, myself, provided a few suggestions how the problem could be solved, or at least made better. Instead of taking note, he goes on his little rampage, making claims that support the suggestion that he really does not care about anyone who uses the program. I'd like to see the guys behind the Free Software Foundation (including GNU/Linux) make such bold statements as, "If you don't like it, let's see you do better!" All of their software is completely free. Not only monetarily free, but also gives you plenty of freedom over the software itself. This being the case, programmers who code strictly as a hobby have little right to be so insanely crass when problems with how their programs work are brought to attention. Take note that I said work. JCE's claim is that it does work. My claim is that it does not work on all computer setups. This is a screen resolution issue. Further, telling someone they should change their video resolution is... well, what you people like to refer to as "elitism". Just because people use 800x600 does not mean that they CAN'T, but perhaps they perfer to. They have their reasons for liking such a screen resolution just as you have your reasons for disliking it. Telling them they must change what they like just to suit you is pushing it.

Bringing back the whole "if you don't like it..." BS, I will point out that I hold no interest whatsoever in Chrono Trigger. I have not played the game at all, to be perfect honest. The meaning to all of this is that I am not arguing for myself in any way, shape or form; but rather for users of this program. Certainly, 95% or more of the users will have no problem with it. But just because the minority is so small does not give you any right to neglect them. I don't go around making a huge, 2048x2048 dialog for my Mega Man 7 editor just because it's a common size for a stage bitmap. You would call me outright stupid for such a thing. I would equally call myself stupid for that. If it doesn't fit in the window, there are always solutions. Scroll Bars are always a great place to start.
That out of the way, I really don't have much to say about the current situation of the program. JCE clearly only wants praise. This can be more-or-less verified by his own comments in this thread. He explodes over well-structured, thought-provoking, though unsympathetic commentary. I have not attacked him, his programming skills, or thje features or tools supplied in his program. But that is what he sees. Not much I can do about that, really. He does not wish to address any issue brought up regarding the GUI. Why this is, I cannot say. He would rather leave the IRC channel, or leave the forum before even considering working on it. That is what I call "storming off" -- it's as if to say, "If I don't get my way, I will just leave. Let's see how you like that!" If that's your solution to the pitfalls in your GUI design, so be it. Just remember that the only people you are hurting are the program's users.
I don't have any use for "anything better" as I've seen mentioned here, many times before. I also have no need to write "anything better" because I would have no use for it. I'm fairly certain that few others would have any use for it, either. The time it would take to write a replacement would cost far more than the time taken to move a few things around in Visual Basic's form editor and call it "version 1.1".

At the end of the day, if you want to give your thanks to JCE, you know where he can be reached. But if you have anything to say regarding the faults of the program, don't even bother. It would especially be unwise to show the same lack of effort to sugar-coat it that he's displayed in accepting that his program is not perfect.


To JCE: your "generosity", as you put it, has just been flooded and completely overwhelmed by your emotional outburst. I can only apologize that you took such offense to what I had to say. I was never hostile towards you. Instead, that was your 'gift' to me. Put your ego on the back burner and listen to reason, OK? And for God's sake, don't become Miss Drama Queen when someone comes to you with a problem and won't let up. It is your responsibility as the author of the program to take such problems into account. Saying that one portion of the program is 'bad' is not saying that the whole program is bad. You must come to realize this. We are trying to help you, but you are not willing to help yourself.
Since you are on the defensive against flames and whatnot, I have omitted the final portion of my post. I will send it your way when you regain your cool. Keep in mind, it's not exactly pretty, but it's an honest opinion, and I feel the issue must be addresses on a very personal level. What I have to say about it should not be public knowledge. So, there you have it.
Parasyte

Bullet Bill
Level: 35

Posts: 265/514
EXP: 267348
For next: 12588

Since: 05-25-04

Since last post: 104 days
Last activity: 32 days
Posted on 02-04-05 07:34 AM, in Super Metroid: Affliction - Contest Winners Link
I'm not so sure about "mechanized" enemies, unless that's a theme you're going with. One or two mecha-baddies might stand out in a bad way.
A Jet Pack would have to replace something like Space Jump/Screw Attack combo. Even Charge Beam/Space Jump combo. Those allow for the same kind of game play... Fly above ground and kill things.
And I hate those reflector things. It's bad enough trying to dodge your own shots reflected by them. Imagine trying to dodge an enemy's shot, while attempting to make said enemy fire at a reflector in such a way that the beam reflects and does damage to it. Ouch? I guess it would be less hassle if the shots moved slow, but that would just be boring. Or maybe just one critical hit, rather than three? As interesting an idea as it is, that would just be terribly frustrating.


(edited by Parasyte on 02-04-05 03:35 AM)
(edited by Parasyte on 02-04-05 03:36 AM)
Parasyte

Bullet Bill
Level: 35

Posts: 266/514
EXP: 267348
For next: 12588

Since: 05-25-04

Since last post: 104 days
Last activity: 32 days
Posted on 02-04-05 11:05 PM, in Windows and Linux Questions Link
Windows 3.11 should support a generic SVGA driver. If it does not work with the Radeon, I don't know what to tell you, other than a long, hard Google search.

Linux:
1. See RPM Uninstall
2. ???
3. RedHat comes with an OpenGL implimentation (http://www.opengl.org/documentation/implementations.html) The OpenGL site has plenty of resources for working with the API. For example:
http://www.opengl.org/documentation/spec.html
http://www.opengl.org/applications/linux/
http://www.opengl.org/resources/index.html


(edited by Parasyte on 02-04-05 07:06 PM)
Parasyte

Bullet Bill
Level: 35

Posts: 267/514
EXP: 267348
For next: 12588

Since: 05-25-04

Since last post: 104 days
Last activity: 32 days
Posted on 02-05-05 02:40 AM, in Editeur Link
I use TextPad for ALL programming and scripting. Example showing one of the C/C++ syntax highlighting definitions: http://desnet.fobby.net/hosted/parasyte/ide.png


(edited by Parasyte on 02-04-05 10:41 PM)
(edited by Parasyte on 02-04-05 10:44 PM)
Parasyte

Bullet Bill
Level: 35

Posts: 268/514
EXP: 267348
For next: 12588

Since: 05-25-04

Since last post: 104 days
Last activity: 32 days
Posted on 02-05-05 10:58 AM, in Temporal Flux Release Link
Originally posted by Geiger
Rendering Chrono Trigger maps is much more complex than Super Mario World. FuSoYa started a Chrono Trigger editor named Lunar Trigger which was never finished, though it could edit Location maps. Last time I checked, TF's managed code ran just slightly slower than LT's native code (5 seconds for large maps). Version 1.06 renders a 3 megapixel image on the fly in software. The WIP version renders a 12 megapixel image in about the same amount of time.

...

---T.Geiger


On my machine, Lunar Trigger can render large maps (for example, 08E and 0F4) in about 30ms. Temporal Flux v1.06 takes almost 3 seconds to render these maps. I don't see how 3 seconds is only "slightly slower" than 30 milliseconds. That's actually on the order of 100 times slower. *shrug*
As for the WIP, 4 times faster [than the current public build] is still no where near as fast as Lunar Trigger. Either I am completely missing any point you may have about the speed comparison between Lunar Trigger and Temporal Flux, or the .NET framework really is as damn slow as anyone could imagine.
Parasyte

Bullet Bill
Level: 35

Posts: 269/514
EXP: 267348
For next: 12588

Since: 05-25-04

Since last post: 104 days
Last activity: 32 days
Posted on 02-05-05 05:27 PM, in new editor, bring change of pants Link
Originally posted by JCE3000GT
My response:
See Parasyte this is EXACTLY what I'm talking about. You are picking apart other people's work just to nitpitck. This kind of post is exactly what I was talking about, you people that do this do NOTHING for the betterment of the emulation community. Peer, I frankly find nothihng wrong with your choice of .NET. I still think you've done a fantastic job.

Wrong, I am not picking at anything. If I see something which should probably be pointed out, I will point it out. Point in case; Geiger mentioned that Temporal Flux was only "slightly slower" than Lunar Trigger. I found that very odd, because I had used both and know there are vast differences in the speed. And so I set out to get some information on it for a rebuttle. (It's not nice to spread false information.)

Originally posted by JCE3000GT
30ms vs 3 seconds? You calculated the 30ms yourself didn't you.

No, Lunar Trigger did. It has a speed test feature that can be run by pressed the backslash key (\) which will render the current map 100 times and calculate the average speed. Averages were: Map 08E = 29ms, Map 0F4 = 31ms. So I simply averaged those and "calculated" 30ms. As for "calculating" the render speed of Temporal Flux, I had to time it with my watch and make as close an estimate as I could. Since it's OBVIOUSLY a longer wait than with Lunar Trigger, I doubt a precise speed would have much of an impact; 3 seconds is about right.

Originally posted by JCE3000GT
You must be one of those people Parasyte that speeds around on the freeway trying to get 1 car ahead don't you?

I have no idea what this has to do with anything, but to answer this question, "No." I've never violated any traffic laws (even when the cops weren't looking) because I have no need to. It pisses me off seeing idiots speed around everywhere just to get to the next red light faster than everyone else. It makes no damn sense.

Originally posted by JCE3000GT
So it's, 3 seconds...so what. Unless he's planning on releasing this under a company name to the retail/distributor marker why does he really need to care how long it takes to do something--and even then it's still his prerogative what he codes. Especially if it works.

Yeah, sure, 3 seconds isn't all that bad. But compared to 30ms, it's a bit on the slow side. You realize I would have said nothing if Geiger hadn't made such a claim, right? That claim being that Temporal Flux is only "slightly slower" than Lunar Trigger, in case you have forgotten.

Originally posted by JCE3000GT
So, if you really don't like .NET and you feel his program is too slow just code your own CT editor using what ever means deem you fit...oh wait you don't even like nor play CT. Then WHY are you even in this thread? You don't even contribute anything worthwhile to the advancement of CT editing. I was hoping Peer had some new info in this thread...then I see your ambiguously stupid post. You don't like my interface, you don't like Peer's extra 3 seconds (supposedly 3 seconds)...what's next. This is really getting old.

Take note that there are no hidden messages in either of my posts. Both you and Geiger jump to conclusions and read into things which are not there. No where in my reply to the Temporal Flux thread did I ever mention my disliking of .NET. I may have indirectly implied it, but Geiger's response was a byproduct of my stating to him earlier that I hated it.
What you fail to realize is that I have contributed 1) Something to consider about your GUI, 2) Plenty of ideas to attempt to fix it, 3) Correction of information regarding "Temporal Flux vs Lunar Trigger". I don't do this out of spite. If something is wrong, something should be done about it. Plain and simple.
And I'm surprised that you found my post 'ambiguously stupid'. I may have to remind you that your whole ideals of a community are 'ambiguously stupid'. In a community you are not supposed to contribute, then turn around and run away crying, making claims that it would be better if you hadn't released anything, or that those who dislike your work should "do better". You are supposed to contribute, then absorb all the information you can about how users feel about your contribution; good or bad. After serious consideration of pros and cons, AND ONLY AFTER SERIOUS CONSIDERATION, should you decide to impliment or rebut.

But what do I know about these things? I've just been a programmer for the better part of a decade who's contributed plenty to certain internet communities. I'm just a programmer who everyone hates. I get bombarded with 'flames' every time I make a suggestion or correction. That is probably what makes me seem so irratable.

Originally posted by JCE3000GT
Maybe Peer should of never released his editor and I never released mine, and everyone else never released thier work...where would that of taken us? We would still be hex editing NES ROM is where we would of been. I'm out.

Yes. Let's not release our software because the inevitability of human error will cause someone to point out those unavoidable mistakes! That is some incredible logic. While we're at it, we probably should not have hex editors, because those probably contain some bugs. I bet you've never imagined how the authors of GNU/Linux feel when someone makes a suggestion, complaint, or straight up tells them all of their work sucks? GNU/Linux and the Free Software Foundation are not going anywhere, no matter how many hundreds of times more complaints they get every day.

But hey, I'm not telling you how to run things. I could easily tell you that "complaints" should not bother you. You have plenty of hobbyist programmers to look up to in this regard. You have to make such decisions for yourself.

Ah yes, and stop searching so hard for evidence to incriminate me with. Accusing me of proclaiming that .NET sucks (when I clearly had not) is down right ludacris. Further more, you require checking your sources before spouting off about certain subjects. Questioning my 'ability' to calculate the rendering speed of Lunar Trigger? Have you even used the program?


P.S. How do you like my reaction to Geiger in his thread? He asked me not to reply, so I obliged. Imagine that.
Parasyte

Bullet Bill
Level: 35

Posts: 270/514
EXP: 267348
For next: 12588

Since: 05-25-04

Since last post: 104 days
Last activity: 32 days
Posted on 02-05-05 06:51 PM, in new editor, bring change of pants Link
More misinterpretation, please? I don't want you to get rid of your project. Why the hell else would I argue AGAINST your stance of leaving and not releasing anything? Do you not understand?

As far as experience goes, the reason I brought it up was to suggest that I do know at least a little about what I am talking about. You're making me out to be someone who randomly shoots things from my ass for no purpose. Further, you are not shoving anything down anyone's throat, this is clear from your insistance on running away. Hobby programmers who won't even take simple concerns such as GUI troubles into consideration should probably rethink a few things. Programming as a hobby is done for fun; you should not let miniscule complaints get to you in such ways. This is the idea that I am trying to bring up. I'm sorry that I'm such a fKitten Yiffer! If you wish to ignore that there is anything wrong with the GUI, that's your business. But that whole thing has gone and put you off for WHO KNOWS what reason? Either accept that some things about it could change, or rebut it. There is no need to explode and strew accusations everwhere. That is why I feel sorry for you.

And yes, you should care what everyone thinks. Caring usually leads to progress and whatnot. You should also reconsider how you read my posts. I have never insulted you. This is another one of those conclusions which you have jumped to.
I also never said I was freindly about my critisism toward your GUI. In fact, I explicitly stated that I did not sugar-coat it. I do not hide this fact. (By the way, did you ever notice that my original comment -- the one which started all of this -- was typed in ALL CAPS? It seems that you missed this minor detail. A detail which often implies satire in the form of over-reacting. What was that you were saying about similes?)

Now then, I don't hate you. I do not hate your program, nor you GUI. I just strongly urge you to TAKE INTO CONSIDERATION that there may be some flaws in that GUI. Would you do that for me? Just take the time to inspect it, and imagine how people feel who don't care for any screen resolution other than 800x600? While on the subject of things I don't hate - I don't hate Geiger, I don't hate Temporal Flux, I don't hate Chrono Trigger, I don't hate a lot of things. Then again, I do hate a lot of things. I am human, after all.


So, what's left to debate? More about how I'm a nazi asshole who only sticks around to piss on people? How about the observation made that I attack and insult people in order to make myself look better? And I would like references. It always helps to clear up misinterpretations when the material in question is explicitly pointed out.
Parasyte

Bullet Bill
Level: 35

Posts: 271/514
EXP: 267348
For next: 12588

Since: 05-25-04

Since last post: 104 days
Last activity: 32 days
Posted on 02-06-05 04:17 AM, in new editor, bring change of pants Link
Originally posted by DivineDragoonKain
30 ms may be 100 times faster than 3 seconds, but to the human comprehension (disregarding actual time), there is but a minor and SLIGHT difference (unless you're doing nothing but rendering maps or have some sort of hyperactive disorder, which I myself do, so that's not even an excuse). That's nothing but nitpicking.

The difference between 30ms and 3 seconds is not sublime; there is an obvious difference. The one thing I will agree with is your point, however; there can be instances where a speed comparison renders results which are either hardly, or completely unnoticable [without exact numbers]. If it were 30ms compared to 300ms, there would be no fault. Each of those are less than one half of a second, and are thus quite difficult to distinguish. But when you are able to count, "1, 2, 3..." as compared to what appears to be AN INSTANT, that's where the term "slight" goes way out of proportion.

Originally posted by DivineDragoonKain
However, I do agree about the GUI... to an extent. JCE should not be forced to take anything into consideration, but rather, someone who feels that this is a major problem should create their own version 1.1 that incorporates lower resolution support (with his permission). You say you've been programming for the better part of a decade, so why not help him with his problem? Even if you'll have no use for the editor, you'd be helping the CT hacking community in general, and would lessen the dark light you've been put into through this argument.

In which part of this whole fiasco have I not been trying to help him? Have I not given more than one idea to help solve the problem? If you're suggesting I download the source code (which is nowhere to be found, mind you) and do the work myself, yeah, I probably would have. But the source has not been made publicly available. So rather than any 60 second change made to the GUI, it would require starting a whole new project from scratch. I have already covered this aspect. This being the only option, I can help no more than give suggestions.


(edited by Parasyte on 02-06-05 12:22 AM)
Parasyte

Bullet Bill
Level: 35

Posts: 272/514
EXP: 267348
For next: 12588

Since: 05-25-04

Since last post: 104 days
Last activity: 32 days
Posted on 02-06-05 02:26 PM, in I. Am. Bored. Link
The grass itself looks fine. I guess the only problem in that region is the grass "shadow" to the left of the rock, and above the concave portion of the land. There's just a small dip. That's really insignificant and would not have been noticed if it went unmentioned?

Oh, I can't comment on the stage. I haven't played the first Sonic game enough to take note on what has been changed, and how it compares to the original.
Parasyte

Bullet Bill
Level: 35

Posts: 273/514
EXP: 267348
For next: 12588

Since: 05-25-04

Since last post: 104 days
Last activity: 32 days
Posted on 02-06-05 06:22 PM, in new editor, bring change of pants Link
Have we downloaded the same release? The one I have is a rar containing only three files (tbl, exe, txt) none of which are sources.
Parasyte

Bullet Bill
Level: 35

Posts: 274/514
EXP: 267348
For next: 12588

Since: 05-25-04

Since last post: 104 days
Last activity: 32 days
Posted on 02-07-05 12:38 PM, in The gameboy colorizer thread Link
You're better off avoiding GBcolorizer altogether. You need a better environment to work with, especially in the compatibility department. Basically, the game needs some very specific hacks done to convert it into a GBC game. GBcolorizer's automation process will not be able to do it. So I say it should be started fresh without GBcolorizer.
Parasyte

Bullet Bill
Level: 35

Posts: 275/514
EXP: 267348
For next: 12588

Since: 05-25-04

Since last post: 104 days
Last activity: 32 days
Posted on 02-07-05 04:43 PM, in Poor HTML programming Link
Using only HTML 4.01 Strict + CSS, it is easier to make a site look bad in Internet Explorer than it is in FireFox. The HTML and CSS could be perfectly written, and properly verified, but that does not mean Internet Explorer will display it properly. This is due to incomplete support for CSS, and probably the whole lenient HTML thing. My most recent website design is a good example. The CSS used is not fully supported by either IE or Opera. IE also has the added benefit of 'ignoring' the PNG transparency.

That being the case, I can't even comprehend why anyone would attempt to support IE over all other browsers, if IE can't even support proper web design.
Parasyte

Bullet Bill
Level: 35

Posts: 276/514
EXP: 267348
For next: 12588

Since: 05-25-04

Since last post: 104 days
Last activity: 32 days
Posted on 02-08-05 05:44 PM, in The gameboy colorizer thread Link
I'm not 100% certain, since I have not looked into the idea. GBcolorizer takes over the VBlank handler, placing the "colorization code" within the handler. I don't believe it has to be handled every frame like that, unless you need to change the color of certain tiles or sprites on each frame. Just as long as the color code sets up the video hardware correctly, I don't think it really matters where you place it, or how it's written. You will just need info regarding the GameBoy Color hardware, as well as z80-gb assembly experience and a little info on the game in question (Best place to put the code, where to find free ROM space, MMC used, etc).
Parasyte

Bullet Bill
Level: 35

Posts: 277/514
EXP: 267348
For next: 12588

Since: 05-25-04

Since last post: 104 days
Last activity: 32 days
Posted on 02-09-05 11:04 AM, in 64-bit integers in C? Link
unsigned long long bignum = 0x8000000000000000LL;

The LL signifies to the compiler that you are using a 64-bit constant.
Parasyte

Bullet Bill
Level: 35

Posts: 278/514
EXP: 267348
For next: 12588

Since: 05-25-04

Since last post: 104 days
Last activity: 32 days
Posted on 02-09-05 06:19 PM, in 64-bit integers in C? Link
Use %lld. Remember, 64-bit is LONG LONG! Single LONG just won't cut it.


As for "assigning a string to a fixed-size char array"... A string is handled in C as a pointer. Anything between two double quotes will always be a pointer to the data within the double quotes, followed by a null terminator. For example:

char *SomeString;
SomeString = "This string is actually a pointer to the data within the string. Here's the null terminator -->";

You can easily assign the pointer to SomeString, because SomeString is a pointer. An array is not a pointer. You must copy the data into the array manually. A simple assignment will not work*. Jman gave the perfect example of copying, using the strcpy() function.


* Many compilers do support assignment of strings to arrays, but only during initialization of the array. The compiler requires string.h for it to work, however. This is because the compiler litterally changes the assignment to a call to the memcpy() function. Example:

char MyString[] = "Example of 'assigning' a string to an array during array initialization.";
printf("%s",MyString);

DO NOT expect this to work everywhere. And in fact, it's probably a bad idea to use it at all, since it could cause plenty of confusion.
Here's what the created assembly looks like:

.text:004012FA        lea     ecx, [ebp+var_58]
.text:004012FD mov edx, offset aExampleOfAssig ; "Example of 'assigning' a string to an a"...
.text:00401302 mov eax, 49h
.text:00401307 mov [esp+78h+var_70], eax
.text:0040130B mov [esp+78h+var_74], edx
.text:0040130F mov [esp+78h+var_78], ecx
.text:00401312 call memcpy
.text:00401317 lea eax, [ebp+var_58]
.text:0040131A mov [esp+78h+var_74], eax
.text:0040131E mov [esp+78h+var_78], offset aS ; "%s"
.text:00401325 call printf



(edited by Parasyte on 02-09-05 02:23 PM)
(edited by Parasyte on 02-09-05 02:29 PM)
(edited by Parasyte on 02-09-05 02:48 PM)
Parasyte

Bullet Bill
Level: 35

Posts: 279/514
EXP: 267348
For next: 12588

Since: 05-25-04

Since last post: 104 days
Last activity: 32 days
Posted on 02-09-05 09:21 PM, in Makin' Mario the star of 'Panic in Nakayosi World Link
This should be about original size. Heheh!
Parasyte

Bullet Bill
Level: 35

Posts: 280/514
EXP: 267348
For next: 12588

Since: 05-25-04

Since last post: 104 days
Last activity: 32 days
Posted on 02-10-05 01:41 AM, in 64-bit integers in C? Link
Originally posted by HyperHacker
I was doing it like this:
const char* stringarray[3];
stringarray[0] = "String 1";
stringarray[1] = "String 2";
[...]


I still don't see why that couldn't work, since they're constant strings; it should just be making stringarray[0] point to the first one and stringarray[1] point to the second?

That will work fine. I tested it, myself:
const char* stringarray[2];
stringarray[0] = "String 1";
stringarray[1] = "String 2";
printf("%s\n",stringarray[0]);

As you expect, it prints "String 1". Nothing too surprising, here.


Originally posted by HyperHacker
...And *surprise!* it doesn't work. I really don't see why this has to be so complicated.

int unit = 0;
const char* Name[10] = {
"Bytes",
"Kilobytes",
"Megabytes",
"Gigabytes",
"Terabytes",
"B",
"KB",
"MB",
"GB",
"TB"
};
while((b >= 1024) && (unit <= 4))
{
b = b /1024;
unit++;
}
if(!FullNames) unit += 5;
sprintf(Buffer,"%d %d %s",b,unit,Name[unit]);


It still just prints null for the first one and crashes with any others.

I don't see anything explicitly wrong with that, but it could be because I'm either half asleep, or because you neglected to include some code (the code that prints Buffer, and the definition of 'b' -- even though those are not important.)


Originally posted by HyperHacker
The %lld thing isn't working either:

long long x = 5000000000LL;
printf("%lld\n",x);

I still only get 705032704 (0x2A05F200) rather than 5000000000 (0x12A05F200) (whether x is signed or not).

You may need to download and install the latest version of newlib to get it working. I believe MinGW comes with libc, rather than newlib.
Parasyte

Bullet Bill
Level: 35

Posts: 281/514
EXP: 267348
For next: 12588

Since: 05-25-04

Since last post: 104 days
Last activity: 32 days
Posted on 02-10-05 10:16 AM, in 64-bit integers in C? Link
Wait, where did 'FormatBytes' come from? Your posts are missing far too much code, and veering off course. I can't figure out what either of those last to lines you posted has to do with any of your previous code. I would suggest pasting entire functions, and complete function calls (including definitions of variables and whatnot used therein).
Having only code snippits is causing confusion. Think of it as if you were giving these snippits to a compiler... It wouldn't know what to do, given only that information. Likewise, for any of us to compile and debug this code, we need every relevent line of code you are using.

Newlib is available here: (First link that showed up in Google. "I'm feeling lucky" would have taken you directly to it) http://sources.redhat.com/newlib/


(edited by Parasyte on 02-10-05 06:19 AM)
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
Acmlm's Board - I2 Archive - - Posts by Parasyte


ABII


AcmlmBoard vl.ol (11-01-05)
© 2000-2005 Acmlm, Emuz, et al



Page rendered in 0.043 seconds.