Laser beams on a ship (please help!)

Talon1

Semi-Intermediate Add-on Dev.
Addon Developer
Joined
Aug 16, 2008
Messages
282
Reaction score
0
Points
0
Location
Secret Underground Moon Base? XD
It could be done with a DLL.

Simple method:
1. Determine if the target vessel's position intersects your laser beam.
2. Delete the target vessel.

Complex method:
As above but add some textures and/or particle streams for effect.
Ok, can you or someone else who knows how to do this do that, I don't know how to make DLLs or C++. I will work on the 3D model, the scenarios, the config and the textures. Who ever helps me gets equal credit for this;)

Thanks

BlueX273 (EDIT: oops, I mean Talon1, thats my other screen name)

(YAYS!!!! 10 more posts till 100 posts!!!!!)
 
Last edited:

unknown_orbiter

Orbital Mystery
Addon Developer
Tutorial Publisher
Donator
Joined
Nov 5, 2008
Messages
279
Reaction score
0
Points
16
Location
U:/MilkyWay/Sol/Earth
Website
www.youtube.com
Im liking this idea... plus some respect to tblaxland. Thinking like a good programmer ;)
if(object_beam contacts targetObject)
{
pwn that n00b taretObject;
}
else
{
recharge;
}
DLL will be fun to write >:)
 

Hielor

Defender of Truth
Donator
Beta Tester
Joined
May 30, 2008
Messages
5,580
Reaction score
2
Points
0
Uh... hello? can someone please make the dll for this canon??? It's been 3 days and still no answer.:(

You want someone else to do all the work for precisely "a fifth of the credit."

Two issues:
-No one is going to want to do all the work for less than all of the credit.

-How do you divide up credit for something into precise amounts?

Also, this is the second thread in which you've "offered" to have someone else do all the work so you could take most of the credit.

That's why there was no answer.
 

Notebook

Addon Developer
Addon Developer
News Reporter
Donator
Joined
Nov 20, 2007
Messages
11,819
Reaction score
641
Points
188

tblaxland

O-F Administrator
Administrator
Addon Developer
Webmaster
Joined
Jan 1, 2008
Messages
7,320
Reaction score
25
Points
113
Location
Sydney, Australia
Talon, I'm assuming you are new to programming altogether, so forgive me if this assumption is incorrect.

There is some sage advice here:
http://blogs.techrepublic.com.com/programming-and-development/?p=43

And below is one of the best C++ FAQs I have found. Read Section 6 at least twice and make sure you understand what objects and inheritance are. I didn't when I first embarked on addon coding and made some costly mistakes (time-wise) because of it.
http://www.parashift.com/c++-faq-lite/index.html

Also, I drew this up to help myself understand inheritance and dynamic binding. Perhaps it will be of some use to you:
http://www.orbiter-forum.com/attachment.php?attachmentid=1370&d=1222237875
 

Talon1

Semi-Intermediate Add-on Dev.
Addon Developer
Joined
Aug 16, 2008
Messages
282
Reaction score
0
Points
0
Location
Secret Underground Moon Base? XD
AHHH!!!!! GOD!!!!!!, IT FEELS LIKE THIS HAS BEEN DONE TO ME: :chair:
Head throbs...ow...ow...ow......
Also, if I don't get how to do this by next week, i'm a total dumbass and i'm going to need someone to help me make the DLL.....
 

unknown_orbiter

Orbital Mystery
Addon Developer
Tutorial Publisher
Donator
Joined
Nov 5, 2008
Messages
279
Reaction score
0
Points
16
Location
U:/MilkyWay/Sol/Earth
Website
www.youtube.com
You have no programming experience, yet you are very focused on your goal...
I suggest finding a friend who has good knowledge of C++ and DLLs. I only meet one of these requirement. I don't suggest demanding your work on this forum though.
 

tblaxland

O-F Administrator
Administrator
Addon Developer
Webmaster
Joined
Jan 1, 2008
Messages
7,320
Reaction score
25
Points
113
Location
Sydney, Australia
AHHH!!!!! GOD!!!!!!, IT FEELS LIKE THIS HAS BEEN DONE TO ME: :chair:
Head throbs...ow...ow...ow......
Huh? I thought we were trying to help, not beat you up...

Also, if I don't get how to do this by next week, i'm a total dumbass and i'm going to need someone to help me make the DLL.....
Don't be so hard on yourself. You've had those resources we pointed you for just hours. Take your time, no one else is going to be upset even if it takes you a year (or more) to publish your first DLL. :beach:
 

Talon1

Semi-Intermediate Add-on Dev.
Addon Developer
Joined
Aug 16, 2008
Messages
282
Reaction score
0
Points
0
Location
Secret Underground Moon Base? XD
UPDATE

Ok, I just proved i'm not a dumbass. I'm starting to get this. Making DLLs for orbiter is kind of like make .cfg and .ini files. Right now, I've setup my compiler, looked at notebook's links, and made my 1st .cpp file for orbiter.:) Now to figure out how to make it into a DLL.....

UPDATE: Ok, i'm stumped, the tutorial said to compile it but how?? Help!!!
 

unknown_orbiter

Orbital Mystery
Addon Developer
Tutorial Publisher
Donator
Joined
Nov 5, 2008
Messages
279
Reaction score
0
Points
16
Location
U:/MilkyWay/Sol/Earth
Website
www.youtube.com
Calm yourself. What compiler are you using? In most cases you must first download an SDK kit that enables the compile and run tools (such as TextPad).
 

RisingFury

OBSP developer
Addon Developer
Joined
Aug 15, 2008
Messages
6,427
Reaction score
492
Points
173
Location
Among bits and Bytes...
In general, Ctrl + F5 will compile and run your application... but you can't exactly run an independent DLL...
 

tblaxland

O-F Administrator
Administrator
Addon Developer
Webmaster
Joined
Jan 1, 2008
Messages
7,320
Reaction score
25
Points
113
Location
Sydney, Australia
In general, Ctrl + F5 will compile and run your application... but you can't exactly run an independent DLL...
No, but you can setup up the debug options in the compiler per:
http://www.orbiterwiki.org/wiki/Free_Compiler_Setup#Debugging_the_addon

Then pressing F5 will build (means compile + link) the addon and launch Orbiter. This is very useful for debugging your addon because you can use "watches" to see what is going on in your addon while it is running.
 

Talon1

Semi-Intermediate Add-on Dev.
Addon Developer
Joined
Aug 16, 2008
Messages
282
Reaction score
0
Points
0
Location
Secret Underground Moon Base? XD
Ok, thanks, but i'm still going to need help writing the cannon DLL. In the complex method that tblaxland said, how do I do it???
 
Top