The Ur-Quan Masters Discussion Forum

The Ur-Quan Masters Re-Release => Starbase Café => Topic started by: general_klefenz on January 27, 2009, 05:34:18 pm



Title: general_klefenz's project recruitment
Post by: general_klefenz on January 27, 2009, 05:34:18 pm
here i expect people to join as programmers to this project

if you can handle Game Maker (if you can handle any language you can with GM) write an AI script or write it in other language and i'll translate it.
 here is my project , i haven't updated it since last time, it features earthling cruiser and vux intruder:

http://www.megaupload.com/?d=93B192TR
http://www.megaupload.com/?d=P1A17F0R


Title: Re: general_klefenz's project recruitment
Post by: Lukipela on January 27, 2009, 07:10:51 pm
There seems to be a lot of SC projects recruiting all of a sudden.


Title: Re: general_klefenz's project recruitment
Post by: Cedric6014 on January 27, 2009, 08:03:22 pm
I know!

Tight labour market too


Title: Re: general_klefenz's project recruitment
Post by: RTyp06 on January 27, 2009, 11:23:04 pm
rar file.. why not just use the much more common zip?


Title: Re: general_klefenz's project recruitment
Post by: jaychant on January 27, 2009, 11:42:09 pm
rar file.. why not just use the much more common zip?

I hate RARs... Mostly because they do essentially the same thing and they need a stupid shareware program (or freeware program cluttered with adware) in order to extract them. Maybe they compress better, but RARs are much more bad than they are good.


Title: Re: general_klefenz's project recruitment
Post by: general_klefenz on January 28, 2009, 01:31:42 am
rar file.. why not just use the much more common zip?

so be it, i'll use ZIP, also change server to RSU upload:

http://www.rocketsoft.gm-school.uni.cc/uploads/star%20control%20meele.zip
thats the source code


Title: Re: general_klefenz's project recruitment
Post by: jaychant on January 28, 2009, 02:38:23 am
not bad. I would be willing to help, but:
1. I'm too busy with Amber the Dragon: Reclamation of the Throne
2. You're using too much drag&drop (I hate drag/drop, mostly because it is extremely time-consuming to duplicate)


Title: Re: general_klefenz's project recruitment
Post by: general_klefenz on January 28, 2009, 03:44:43 am
what drad and drop?
AI don't use drag and drop

this is the cruiser AI:

{
    //AI script for earthling cruiser
    //sergio klefenz 12/12/08
    //pursue enemy until in range,
    //then stop pursue and shoot
   
    script_execute(scr_tracking,obj_control.ply1,turn*power(0.9,limpets));
    //check if need to shoot PDL
   
    //check for potential targets
    if instance_number(obj_destructible_parent) > 1
    {
        //temporary movement to avoid self-targeting
        x += 1024;
        //define the identity of the nearest target
        sdtgt = instance_nearest(x,y,obj_destructible_parent);
        //check target distance
        if point_distance(x,y,sdtgt.x,sdtgt.y) < 128
        {
            //try to shoot PDL
            script_execute(scr_PDL,id);
        }
        //restore position
        x -= 1024;
    }
    //PDL code end


    //check if pointing target
    if abs(direction-tgtdir) < 10
    {
        //if target if far close up
        if point_distance(x,y,tgtx,tgty) > 1024
        {
            vecx += cos(direction*pi/180)*acc*power(0.9,limpets);
            vecy += sin(direction*pi/180)*acc*power(0.9,limpets);
            //activate propulsor
            prop = 1;
        }
        //try to fire a misil
        else
        {
            //deactivate the propulsor
            prop = 0;
            //check energy
            if energy >= 9
            {
                //check cooldown
                if shoota = 1
                {
                    //fire a misil and set the cooldown
                    global.multi = instance_create(x+lengthdir_x(96,direction),y+lengthdir_y(96,direction),obj_mx);
                    global.multi.tgt = obj_control.ply1
                    global.multi. direction = direction;
                    if alarm[2] > 3 {alarm[2] += 4;}
                    shootb = 0;
                    shoota = 0;
                    alarm[0] = 15;
                    energy -= 9;
                }
            }
        }
    }
    //limit speed
    script_execute(scr_speed_limitation);


maybe you didn't see into the scripts folder


Title: Re: general_klefenz's project recruitment
Post by: jaychant on January 28, 2009, 12:16:24 pm
I understand you aren't using only drag/drop, but you are using drag/drop.


Title: Re: general_klefenz's project recruitment
Post by: general_klefenz on January 28, 2009, 05:30:05 pm
yes, I used drag and drop, but not in the AI scripts


Title: Re: general_klefenz's project recruitment
Post by: jaychant on January 28, 2009, 10:03:42 pm
yes, I used drag and drop, but not in the AI scripts

I never said you used it in AI scripts.


Title: Re: general_klefenz's project recruitment
Post by: RTyp06 on January 28, 2009, 11:33:03 pm
ERROR in
action number 4
of Create Event
for object obj_button_ship:

Error in code at line 4:
           case 1: sprite_index = spr_ico_guardian; break;

at position 33: Unknown variable spr_ico_guardian


(and that's only the first error in a long stream of similar errors)

A quick glance at your GMK file shows me that indeed the graphic resource does not exist (or is improperly named). If you look at the code in the create event for obj_button_ship, any line in the switch/case statement where the resource name doesn't change to the color purple means the graphic resource isn't present or is missnamed.

Oh and thanx for putting it in .zip format and finding a better host!


Title: Re: general_klefenz's project recruitment
Post by: RTyp06 on January 28, 2009, 11:57:57 pm
Quote
(I hate drag/drop, mostly because it is extremely time-consuming to duplicate)


Uh, you know that you can cut-n-paste long lists of D&D code don't you? Also, if you use a parent object, all daughter objects will run the same code in the events of the parent. Thus it's often not nessicary to duplicate D&D or GML code in the first place.


Title: Re: general_klefenz's project recruitment
Post by: general_klefenz on January 29, 2009, 02:29:32 am
ERROR in
action number 4
of Create Event
for object obj_button_ship:

Error in code at line 4:
           case 1: sprite_index = spr_ico_guardian; break;

at position 33: Unknown variable spr_ico_guardian


(and that's only the first error in a long stream of similar errors)

A quick glance at your GMK file shows me that indeed the graphic resource does not exist (or is improperly named). If you look at the code in the create event for obj_button_ship, any line in the switch/case statement where the resource name doesn't change to the color purple means the graphic resource isn't present or is missnamed.

Oh and thanx for putting it in .zip format and finding a better host!

some files missed, it's fixed now

http://www.rocketsoft.gm-school.uni.cc/uploads/star%20control%20meele-.zip


Title: Re: general_klefenz's project recruitment
Post by: Megagun on January 29, 2009, 02:40:47 pm
rar file.. why not just use the much more common zip?

I hate RARs... Mostly because they do essentially the same thing and they need a stupid shareware program (or freeware program cluttered with adware) in order to extract them. Maybe they compress better, but RARs are much more bad than they are good.
7-zip (http://www.7-zip.org/) also does RARs....