Jump to content


Photo
- - - - -

3d Rts Tutorial


  • Please log in to reply
45 replies to this topic

#21 GMkizzle

GMkizzle

    GMC Member

  • GMC Member
  • 374 posts

Posted 17 February 2010 - 05:01 AM

omfg!
i spent literally 5 hours doing this and just finished...
it wont work for me :D

im pretty dissapointed now..
are you sure it works ??
  • 0

#22 Schyler

Schyler

    Noskcirderf Derf

  • GMC Member
  • 2445 posts
  • Version:GM8.1

Posted 17 February 2010 - 05:12 AM

Ofcourse it works. Post the error; it may be caused by GM8, or a small typo caused by the GML parser, for example.

Regards,
-Schyler-
  • 0

#23 GMkizzle

GMkizzle

    GMC Member

  • GMC Member
  • 374 posts

Posted 17 February 2010 - 06:05 AM

i was using a usb when i made the gmk. but im having trouble finding it now. i will post the exact code when i find my usb.
but i vaguely remember it being something like something _z or something with that in it, and it was in a few of the scripts/objects. everything worked fine exept that 1 line of code. oh and im using gm7PRO.

why dont you have example files? is it because you afraid of someone stealing/claiming your engine ?

Edited by GMkizzle, 17 February 2010 - 06:11 AM.

  • 0

#24 Schyler

Schyler

    Noskcirderf Derf

  • GMC Member
  • 2445 posts
  • Version:GM8.1

Posted 17 February 2010 - 06:52 AM

No, I originally had them, but yoyofiles (an uploader at the time), went down.

Anyway, Ive already mentioned that bug. You need to replace get_xy_z with rts3d_ter_z. It's because one of the scripts were ripped out of freko's engine, and I forgot to replace one of the occurrences to fit with the naming schema.

Hope it fixes your problem.

Regards,
-Schyler-
  • 0

#25 GMkizzle

GMkizzle

    GMC Member

  • GMC Member
  • 374 posts

Posted 17 February 2010 - 08:56 AM

Oh thank you very much!! its workign now, it is really good.
sorry i didnt notice you had spoken about tbat bug.

thank you very much, 5 hours well spent, Learnt A LOT!!

10/10
  • 0

#26 alex21

alex21

    Destroy EvilCow BURP

  • New Member
  • 336 posts

Posted 18 February 2010 - 08:06 PM

Oh thank you very much!! its workign now, it is really good.
sorry i didnt notice you had spoken about tbat bug.

thank you very much, 5 hours well spent, Learnt A LOT!!

10/10

Thanks for solving the problem after 5 hours. I would figure that out after year. That would be painful.

why dont you have example files? is it because you afraid of someone stealing/claiming your engine ?

GMkizzle partner? Are you willing to release the GMK file? Please post the gmk.
  • 1

#27 TemplarX2

TemplarX2

    GMC Member

  • GMC Member
  • 93 posts

Posted 11 March 2010 - 06:44 AM

I appreciate your effort and all schyler but copy-and-pasting from pdf caused many errors by itself. You definitely have to give us a working example. This would make this tutorial far more popular. Great tutorial in theory but not really worth it in practice.
  • -1

#28 Schyler

Schyler

    Noskcirderf Derf

  • GMC Member
  • 2445 posts
  • Version:GM8.1

Posted 11 March 2010 - 07:05 AM

I appreciate your effort and all schyler but copy-and-pasting from pdf caused many errors by itself. You definitely have to give us a working example. This would make this tutorial far more popular. Great tutorial in theory but not really worth it in practice.

Contact GMkizzle. He has the working source. As for me, I no longer have it. I published this tutorial some 2 years ago, and since then, I've carelessly formatted my computer way too many times.

Regards,
-Schyler-
  • 0

#29 TemplarX2

TemplarX2

    GMC Member

  • GMC Member
  • 93 posts

Posted 11 March 2010 - 07:39 AM

No, I originally had them, but yoyofiles (an uploader at the time), went down.

Anyway, Ive already mentioned that bug. You need to replace get_xy_z with rts3d_ter_z. It's because one of the scripts were ripped out of freko's engine, and I forgot to replace one of the occurrences to fit with the naming schema.

Hope it fixes your problem.



Regards,
-Schyler-


get_xy_z? is that a script. I see no such script.

Edited by TemplarX2, 11 March 2010 - 07:40 AM.

  • 0

#30 alex21

alex21

    Destroy EvilCow BURP

  • New Member
  • 336 posts

Posted 14 March 2010 - 03:59 PM

No, I originally had them, but yoyofiles (an uploader at the time), went down.

Anyway, Ive already mentioned that bug. You need to replace get_xy_z with rts3d_ter_z. It's because one of the scripts were ripped out of freko's engine, and I forgot to replace one of the occurrences to fit with the naming schema.

Hope it fixes your problem.



Regards,
-Schyler-


get_xy_z? is that a script. I see no such script.

Can anyone uplod the GM file so that I can take a look at the bug.
  • 0

#31 Schyler

Schyler

    Noskcirderf Derf

  • GMC Member
  • 2445 posts
  • Version:GM8.1

Posted 14 March 2010 - 09:20 PM

No, I originally had them, but yoyofiles (an uploader at the time), went down.

Anyway, Ive already mentioned that bug. You need to replace get_xy_z with rts3d_ter_z. It's because one of the scripts were ripped out of freko's engine, and I forgot to replace one of the occurrences to fit with the naming schema.

Hope it fixes your problem.



Regards,
-Schyler-


get_xy_z? is that a script. I see no such script.

That's because it dosn't exist. At one point there was a script with that name, but I renamed it and forgot to chage 1 occurance of the name in the tutorial. If that name comes up in the tutorial you should be using rts3d_ter_z() instead.

Regards,
-Schyler-
  • 0

#32 jbturner79

jbturner79

    GMC Member

  • New Member
  • 3 posts

Posted 22 May 2010 - 08:57 PM

This example is by far one of the most helpful tutorials I've found this far. I appreciate the fact that it wasn't just some editable example, because I'm actually trying to learn this technique... and I learned a great deal in the last day with this. Thanks a lot man, your work is incredibly appreciated.

Now that I have this working, I'm hungry to see the newer tutorial. While I pretty much have this down (minimally understanding how it all works together), I'd love to continue this one to discuss multiple units, perhaps placing buildings (or building them), setting behavior for the units (like testunit in the movenow example), possibly deploying fake drop shadows (just to give units a semi sense of realism when zoomed out) etc. I'm doing my best to discover this all out on my own, but you know .. it helps to learn from those that know what they're doing :)

Thanks again, this is awesome.
  • 0

#33 CaptainLepidus

CaptainLepidus

    GMC Member

  • GMC Member
  • 850 posts
  • Version:GM:HTML5

Posted 22 May 2010 - 11:14 PM

I got up to the terrain test part, where you're supposed to run it for the first time...but all it shows is a blank screen. Here's the gmk so far (gm8):
Dowload
  • 0

#34 jbturner79

jbturner79

    GMC Member

  • New Member
  • 3 posts

Posted 23 May 2010 - 12:27 AM

I got up to the terrain test part, where you're supposed to run it for the first time...but all it shows is a blank screen. Here's the gmk so far (gm8):
Dowload


It is probably a typo in your scripting or something of the like (I had a similar issue and it was because I forgot to add the obj_terrain to the room). Here is a copy of my finished product from this tutorial. This doesn't include the .obj files for the robot, you still need to download Dmitko's 3D animation using movenow example to get the files for that. Even though this is a finished product (as per the tutorial), I highly encourage you to continue on with the tutorial and develop your own copy. You learn a lot about how objects and scripts relate to one another. Simply copying my copy of it won't teach you anything about it, and will be very hard to understand unless you're following the tutorial material.

http://www.filedropper.com/3drts1_2

Disclaimer on the above file: all material was put together by me, but it was all thanks to the 3d rts tutorial. I'm posting this only to help out those that may be stuck. I will take this file down in a heartbeat if requested.

Hope this helps :)
** Edit: Woops, I included a broken copy, this was the one I was messing with. I uploaded a clean copy.

Edited by jbturner79, 23 May 2010 - 05:16 AM.

  • 0

#35 thatshelby

thatshelby

    GMC Member

  • GMC Member
  • 3823 posts
  • Version:GM8

Posted 27 May 2010 - 03:52 AM

___________________________________________
ERROR in
action number 1
of Create Event
for object obj_terrain:

In script rts3d_init_ter:
Error in code at line 13:
ds_grid_create(argument0/terrain_prec,argument1/terrain_prec);
^
at position 27: Division by 0.

___________________________________________
ERROR in
action number 1
of Draw Event
for object obj_terrain:

In script rts3d_terrain_draw:
Error in code at line 6:
v_pl1 = ceil((camera_obj_var.xto - camera_obj_var.dist) / (terrain_prec * terrain_imod)) - 2;
^
at position 16: Unknown variable camera_obj_var
______________________
What's wrong?

Edited by Paper Cut Games, 27 May 2010 - 03:57 AM.

  • 0

#36 Bobacupcake

Bobacupcake

    GMC Member

  • New Member
  • 342 posts

Posted 07 June 2010 - 11:38 PM

:) I have the same problem.

___________________________________________
ERROR in
action number 1
of Create Event
for object obj_terrain:

In script rts3d_init_ter:
Error in code at line 11:
   terrain_model = ds_grid_create(argument0/terrain_prec,argument1/terrain_prec);
											^
at position 43: Division by 0.

Edit: Similar Problem :P
Edit2: Ah, I found the problem. Forgot to set the argument.
Edit3: =\


___________________________________________
ERROR in
action number 1
of Create Event
for object obj_terrain:

Error in code at line 1:
   rts3d_init_ter(512,512,32,camera_obj_var);
							^
at position 27: Unknown variable camera_obj_var


Edit4: I fixed it by checking the box that set all uninitialized variables to 0.

Edited by Bobacupcake, 08 June 2010 - 12:08 AM.

  • 0

#37 Rugos

Rugos

    GMC Member

  • GMC Member
  • 460 posts
  • Version:GM8.1

Posted 03 December 2010 - 02:31 AM

Gah! I keep getting a black screen of doom and morbidness. Help pl0x?

Linky: http://www.mediafire...ngg8d5w863jw0ok


Edit: Nvm, Fail by me. Forgot to set the view to "visible when room start" or w/e.

Edited by Rugos, 03 December 2010 - 09:53 PM.

  • 0

#38 Schyler

Schyler

    Noskcirderf Derf

  • GMC Member
  • 2445 posts
  • Version:GM8.1

Posted 05 December 2010 - 01:23 AM

Hmm, seems like my tutorial is getting some attention again.

Anyone got a working file that they want me to add to the first post (download link?). There actually used to be one, but it broke.
  • 0

#39 Rugos

Rugos

    GMC Member

  • GMC Member
  • 460 posts
  • Version:GM8.1

Posted 05 December 2010 - 02:21 AM

Mine is working, but I'm using objs and obj import scripts instead of movenow. I also skipped right down from the end of camera/terrain to units (skipping the water section and the other sections), but used my own code instead, so mine is really working, per se.
  • 0

#40 rater193

rater193

    GMC Member

  • GMC Member
  • 101 posts
  • Version:GM:Studio

Posted 12 April 2012 - 03:18 PM

finally, i found a game maker 3d rts tutorial for game maker :D
thanks a lot, i will post my results after i finish tha tutorial, so everyone will know if its worth
taking a look into the tutorial
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users