Jari Member Posts: 1471 From: Helsinki, Finland Registered: 03-11-2005 |
Does it happen to any one else that you write some code and it works just like supposed during the first tests and when you play your game again in the next day you find that it doesn't work at all anymore? That's feels quite mysterious sometimes and is of course ackward. It doesn't nesessarily have to happen in the next day but code that worked for weeks half an year ago doesn't work anymore when you get back to your project. This is usually more common though and is simply beause some change elsewhere 'broke' the code. Does anything like this ever happen to you? What's your similar coding experience? ------------------ [VoHW] (Help needed) [Blog] - Truedisciple (mp3) |
||
Ereon Member Posts: 1018 From: Ohio, United States Registered: 04-12-2005 |
My Soul Catcher engine worked perfectly when I left it to go on vacation for 2 weeks, when I came back none of it worked. Collision detection, movement, it was all kaput, never did figure out what went wrong, I had to recode the whole thing ------------------ "I am very good at hiding, so if you don't see me, that's where I am." Orc Outlaw, TES III Morrowind |
||
buddboy Member Posts: 2220 From: New Albany, Indiana, U.S. Registered: 10-08-2004 |
wow... what MAKES ME MAD is code that will work sometimes for some other program, usually it's an example program, when used in my program, REFUSES to work... also, i get STUPID errors in BlitzBasic whenever i use it, so I'm glad i haven't bought it... lol.. ------------------ |
||
Lava Member Posts: 1905 From: Registered: 01-26-2005 |
quote: wouldn't you get errors in C++ and any other programming you do? I do, lol ------------------ |
||
firemaker103 Member Posts: 643 From: Registered: 07-13-2005 |
I just hate it when I have a way to do something, in theroy, (make shadows)but I can't figure out how to program it... ------------------ |
||
buddboy Member Posts: 2220 From: New Albany, Indiana, U.S. Registered: 10-08-2004 |
i do, but i can usually fix those... how can you fix it saying "Expecting 'End'" when the End is RIGHT THERE!! lol... explain that to me... ------------------ |
||
firemaker103 Member Posts: 643 From: Registered: 07-13-2005 |
You might have fogot to close an If statment, close a loop, close a string, etc. ------------------ |
||
buddboy Member Posts: 2220 From: New Albany, Indiana, U.S. Registered: 10-08-2004 |
well, how about the time i took Lava's slimchatbeta source (which he gave me)because i was thinking about creating my own chat program, and for starters, i changed the name, to see how it looked, and tried to run it, and it gave that error?! i had seen his program, it ran fine... but then when i took the source, and tried to run it... nope... lol.. explain that... ------------------ |
||
Lava Member Posts: 1905 From: Registered: 01-26-2005 |
Post the source of the code you altered, and I will look at it and see what went wrong. ------------------ |
||
firemaker103 Member Posts: 643 From: Registered: 07-13-2005 |
Or maybe he's just using Blitz3D and your using Blitz Basic? ------------------ |
||
buddboy Member Posts: 2220 From: New Albany, Indiana, U.S. Registered: 10-08-2004 |
i don't know if i still have it... how would that matter if it's just a console thing? then again... lol... ------------------ |
||
Lava Member Posts: 1905 From: Registered: 01-26-2005 |
I used Blitz3D. Also he had the demo and I have full version, though I don't think that would make a difference unless the source file zise was tooo big. ------------------ [This message has been edited by lava (edited April 26, 2006).] |
||
buddboy Member Posts: 2220 From: New Albany, Indiana, U.S. Registered: 10-08-2004 |
ok... maybe sometime i'll try it in Blitz3D... even tho i already made the chat program with another language (DM) lol... i would show it to you guys, but you need BYOND... lol.. ------------------ |
||
CPUFreak91 Member Posts: 2337 From: Registered: 02-01-2005 |
I get annoyed by it too. My theory is that Windows eats your files. Yah right you say. Actually my theor is that you either don't save something, forget to start the program right or the mysterious coding KKK breaks the code. To be honest.. I haven't had that much trouble since I started using reiserFS and Linux... NTFS gets fragmented very easily you know and that could be the most realistic problem. I had this problem on Linux with a FAT partition where I could read and write to my code from Windows or Linux back in the day when I need both OSes. ------------------ |
||
Jari Member Posts: 1471 From: Helsinki, Finland Registered: 03-11-2005 |
quote: This is something every one has to face and you just need experince new programming methods by programming and learning from other people's source codes. Ereon, that's just the thing I was talking about, in worst case. My advice is to never rewrite a code before you find the problem because the problem maybe elsewhere and could thefore come back buggin you again. ------------------ [VoHW] (Help needed) [Blog] - Truedisciple (mp3) |
||
Jari Member Posts: 1471 From: Helsinki, Finland Registered: 03-11-2005 |
quote: I have felt the same, many times, like the code you had next day was older than the code you wrote in previous day. That could happen if the IDE would restore a backup for some reason. ------------------ [VoHW] (Help needed) [Blog] - Truedisciple (mp3) |
||
Ereon Member Posts: 1018 From: Ohio, United States Registered: 04-12-2005 |
Actually it turned out for the better because I'd learned some new methods and the engine itself was a horror to look at......so I was able to reorganize and fix it up with the new methods I'd learned. I'll probably have to do so again when I enter production for my new project. ------------------ "I am very good at hiding, so if you don't see me, that's where I am." Orc Outlaw, TES III Morrowind |
||
Jari Member Posts: 1471 From: Helsinki, Finland Registered: 03-11-2005 |
Yea that's one positive thing when you have to rewrite your code, it's much better (clearer) than previous. ------------------ [VoHW] (Help needed) [Blog] - Truedisciple (mp3) |
||
D-SIPL Moderator Posts: 1345 From: Maesteg, Wales Registered: 07-21-2001 |
quote: NTFS doesn't get as fragmented as you think. Yes they ripped loads of Unix filesystem theory like symlink (hard link is what Windows calls it). Metadata is a wonderful thing --D-SIPL ------------------
|
||
CPUFreak91 Member Posts: 2337 From: Registered: 02-01-2005 |
quote: Explain why over 60 hard reboots and no defrage in between makes your system so slow that defrag runs 2 full days when you finnaly get around to it!? ------------------ |
||
Realm Master Member Posts: 1971 From: USA Registered: 05-15-2005 |
one acronym: MAV i get SOO MANY OF THOSE! IM GETTING ONE ON MY PROGRAM RIGHT NOW! MAVs NEVER make any sense! the last to programs i got mav's on made NO SENSE WHATSOEVER!!!!!!!! IT REALLY PISSES ME OFF!!! GAAAAAAAAAAA!!! Simpe image collision! Both types are not null (They exist) they have an x, a y, and an image, and i ALWAYS GET A MAV!!! This gives me a mav, sometimes it works, sometimes it dosn't, for NO REASON THAT I CAN THINK OF!!
HOW CAN THAT GIVE ME PROBLEMS?!?!?!?! ------------------ Blessed are those who suffer for doing what is right. PM ME YOUR DESCRIPTION OF ME! ILL PUT IT HERE! P.S. I HATE 640x480!!!!!! |
||
D-SIPL Moderator Posts: 1345 From: Maesteg, Wales Registered: 07-21-2001 |
quote: Why would I want to reboot a server running NT any more then my Linux boxes. Compared to FAT, NTFS has come a long way. The only reason it's getting better is because they are adopting more Unix concepts. Two days to defrag against compiling dependencies and maintaining my Linux box, it works out about even. --D-SIPL ------------------
|
||
Jari Member Posts: 1471 From: Helsinki, Finland Registered: 03-11-2005 |
Realm Master, I don't know what MAV is but try to cool down a bit? And that language and agression, what for are you like that? Was Jesus like that? No. Try to be patient and when things don't go like you want them to go. Why not take a break - even a long one - and read the Bible, you may not find direct solution to coding problems but many other very useful tips, if I may say so. You are in my prayers. ------------------ [VoHW] (Help needed) [Blog] - Truedisciple (mp3) |
||
pabloaiz Member Posts: 48 From: Tulsa, CA, US Registered: 12-06-2003 |
Also RM, there are always "manners" in programming. For one, start indenting, it will help you find problems and make the code more readable. Another thing, is that if there is any possibility of something becoming null, you check for it.
Another thing is make your own error msgs! Check code to make sure it runs each time you add something:
Another thing is TAKE BREAKS when you cant figure out things. Come back to it later with a clear mind. During that time you can take Jari's advice, lol ------------------ [This message has been edited by pabloaiz (edited April 28, 2006).] |
||
Realm Master Member Posts: 1971 From: USA Registered: 05-15-2005 |
Ill try... hope it works, i get a similar mav with another one of my games! ------------------ Blessed are those who suffer for doing what is right. PM ME YOUR DESCRIPTION OF ME! ILL PUT IT HERE! P.S. I HATE 640x480!!!!!! |
||
Jari Member Posts: 1471 From: Helsinki, Finland Registered: 03-11-2005 |
The solution usually comes like out from a clear sky when you give it some time. First you are glueless and then it's obvious... ------------------ [VoHW] (Help needed) [Blog] - Truedisciple (mp3) |
||
Realm Master Member Posts: 1971 From: USA Registered: 05-15-2005 |
shoot... didn't work... ... ------------------ Blessed are those who suffer for doing what is right. PM ME YOUR DESCRIPTION OF ME! ILL PUT IT HERE! P.S. I HATE 640x480!!!!!! |
||
buddboy Member Posts: 2220 From: New Albany, Indiana, U.S. Registered: 10-08-2004 |
lol... can you set breakpoints in BB? try setting breakpoints until you get the error? ------------------ |
||
dartsman Member Posts: 484 From: Queensland, Australia Registered: 03-16-2006 |
RM, whats a MAV?? ------------------ |
||
buddboy Member Posts: 2220 From: New Albany, Indiana, U.S. Registered: 10-08-2004 |
Memory Access Violation :D can be a number of things... :D ------------------ |
||
goop2 Member Posts: 1059 From: Registered: 06-30-2004 |
a few times Ive made things in GML that work beutifuly, then I close the program, open it back up, and it dosent work at all >.> that bugs me alot. ------------------ |
||
Jari Member Posts: 1471 From: Helsinki, Finland Registered: 03-11-2005 |
Sorry what's GML? Yeah that's not cool. ------------------ [VoHW] (Help needed) [Blog] - Truedisciple (mp3) |
||
goop2 Member Posts: 1059 From: Registered: 06-30-2004 |
GML is Game Maker Language. Sure, its not a very good one, but still... good for newbes I would say. ------------------ |
||
Jari Member Posts: 1471 From: Helsinki, Finland Registered: 03-11-2005 |
Right game maker, that's not bad at all in my opinion. One thing that bugs me in C++ programming is that it's sometimes lot of work to get some open source software to compile. In linux this is quite easy if you are using some debian packager based distro but in windows this is tricky because often you have to use makefiles to build the libraries your self and this is rarely just a matter of calling nmake for the makefiles. Or so it seems. ------------------ [VoHW] (Help needed) [Blog] - Truedisciple (mp3) [This message has been edited by jari (edited May 05, 2006).] |
||
dartsman Member Posts: 484 From: Queensland, Australia Registered: 03-16-2006 |
lol yeah, I know what you mean about open-source software. Its like you would just expect that you'd just be able to download it and extract, and then you'd have it ready to compile. you compile it. and then like 100s of compiler errors and warnings are displayed. Though I have seen it how ppl sometimes forget to include the library file into the project, or only include it in say just the debug and not the release settings. Does anyone find compiler warnings annoying?? I personally try and get rid of them, and aim to code to stop them whilst coding. Such things like type casting, etc. Like I know sometimes ppl overlook them and just think it'll be fine, but sometimes it'll save you from a bug or confusion. such as "warning signed/unsigned miss match", "warning local variable not referenced". Ah, Memory Access Violation = MAV, never heard it called that before. Thanks for the info. ------------------ |
||
Goldrush13 Member Posts: 107 From: Registered: 02-27-2005 |
When you look back at your code half way through a program and realise there was a quicker way to do that, that, that, that and that. But you're too far gone with your current technique to even know how to fix it so you kick your chest of drawers and that empty coffee jar you're using to store old coins in falls on the floor and glass shrapnel cuts your favourite jeans, then I accidently poured coffee over myself....... |
||
D-SIPL Moderator Posts: 1345 From: Maesteg, Wales Registered: 07-21-2001 |
quote: Why dont you just download the current stable release? ------------------
|
||
Jari Member Posts: 1471 From: Helsinki, Finland Registered: 03-11-2005 |
quote: Well - if I may say - there are usually pretty useful new features in the newer versions which no one has packed yet. ------------------ [VoHW] (Help needed) [Blog] - Truedisciple (mp3) |
||
dartsman Member Posts: 484 From: Queensland, Australia Registered: 03-16-2006 |
Well like say for Ogre, I found it pretty annoying at first to setup, this was about 2-3 years ago. Though their forum was pretty good, so I was able to ask questions, but it just had a heap of fiddling to do to get it working. Ogre requires you to download it and then compile the solution, I had several big problems with getting it to work the first time, which I'm guessing now I wouldn't have anymore. My main problems with Ogre back 2-3 years ago mainly rested on my lack of experience with 3rd party libraries, and how to set them up. But now it's not too bad, though I have known some libraries to be a bit fussy with Compilers and/or additional Libraries. Like I recently downloaded Watcom C/C++ Compiler, it's a bit of a pain to use, but it seems the only compiler which I can use for the "graph.h" 16-bit graphics library, I'm trying to follow the "Tricks of the Game Programming Gurus" book. The compiler sort of has problems as I'm needing some Assembler code and C code mixed together, and documentation seemed hard to find. Though now I've got it sort of working. Most open-source libraries/software are good, but there are the exceptions. Also if you want older libraries/software it becomes even harder (normally). Sometimes i've grabbed a bit of code or a library, tried to build it, only to find I need a library or header file, then had to search out that one file. Even now days sometimes people will use special libraries or headers and then not pass on those files. ------------------ [This message has been edited by dartsman (edited May 11, 2006).] |