Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DLL Talk / I Hate Plugin. Plugin Is Stupid.

Author
Message
tiresius
16
Years of Service
User Offline
Joined: 13th Nov 2002
Location: MA USA
Posted: 22nd Jun 2010 08:27
Just in case this prevents another programmer from wasting two nights of their life, I figured I would share my wisdom...

If you are working on a DLL plugin, don't put it in the plugins folder at any point (i.e. months ago), then forget you did it, then spend 2 nights making changes to your DLL (bug fix, file logging to confirm error, message popups, etc.) in plugins-user that don't seem to take effect no matter what you do.

And don't sit there a minute away from sending an email to IanM crying to him about how DLLs are too hard and then telling yourself you shouldn't be coding in C++ at all because you're not worthy but in the last minute before you click SEND MAIL you search for the DLL in your entire HD and then notice it is in both plugin folders at the same time.

The compiler looks in plugins before it looks in plugins-user.

AGGGGHHH!!


A 3D marble platformer using Newton physics.
KISTech
11
Years of Service
User Offline
Joined: 8th Feb 2008
Location: Aloha, Oregon
Posted: 22nd Jun 2010 20:01
Been there. Just remember, every time things like this happen we learn something.

Diggsey
13
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 23rd Jun 2010 01:42
@tiresius
The most annoying mistakes are in the string tables.

Make one mistake in the string table, and all commands after that one will not work!

There is also a limit of 1,000 commands per plugin which I managed to hit once... I never even finished it

Braude Interactive
13
Years of Service
User Offline
Joined: 1st Aug 2006
Location: Sheffield, UK
Posted: 5th Aug 2010 18:51
I hate book...
CocaCola
9
Years of Service
User Offline
Joined: 23rd Mar 2010
Location: CocaCola.x CocaCola.y CocaCola.z
Posted: 6th Aug 2010 20:53
Quote: "I hate book... "

book is stupid!

I want coke, not Pepsi!
Mnemonix
16
Years of Service
User Offline
Joined: 2nd Dec 2002
Location: Skaro
Posted: 8th Aug 2010 02:56
I remember debugging gamecrypt for 8 hours because I used [ instead of (


...or was it the other way round?

Your signature has been erased by a mod because it's larger than 600x120
Neco
11
Years of Service
User Offline
Joined: 13th Jul 2008
Location: Waterloo, Wisconsin USA
Posted: 7th Sep 2010 20:24
Wow..this thread made me laugh..

I so needed to laugh today.

Thanks.

Michael P
13
Years of Service
User Offline
Joined: 6th Mar 2006
Location: London (UK)
Posted: 9th Sep 2010 22:53
Spent about two hours debugging this (see attached screenshot), should be a double equals not a single equals :o.. Rage occurred when I found out

Attachments

Login to view attachments
Diggsey
13
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 9th Sep 2010 23:47
Quote: "if (!success)"


[b]
Michael P
13
Years of Service
User Offline
Joined: 6th Mar 2006
Location: London (UK)
Posted: 10th Sep 2010 00:01
Shortest way to write that line is probably:


I generally don't like to do !success in place of success == false because I don't think it is as easy to read. Its personal preference really.

tiresius
16
Years of Service
User Offline
Joined: 13th Nov 2002
Location: MA USA
Posted: 10th Sep 2010 06:26
I won't mention how many times I put A = B instead of A == B and forgot to put a ; at the end of lines. I suffer from multi-computer-language-itis, and it is a terminal case. No matter how I try to stay only in DBPro I get sucked into all sorts of stuff whether it is C/C++ or the 2 proprietary functional languages I use at work... it will never end.


A 3D marble platformer using Newton physics.

Login to post a reply

Server time is: 2019-10-18 22:23:24
Your offset time is: 2019-10-18 22:23:24