Author Topic: Custom Commands?  (Read 2566 times)

Gwafu

  • Guest
Custom Commands?
« on: 17 May 2010, 05:13:24 »
Sorry, it's my first time here  ;), and I'm bored with wc3.
And I'm trying to make a wc1 mod for this game, my question is, is it possible to make custom commands/skills?

~Thanks in advance
~Gwafu aka supertoinkz(from TheHiveWorkshop)

ElimiNator

  • Airship
  • ********
  • Posts: 3,391
  • The MegaGlest Moder.
    • View Profile
Re: Custom Commands?
« Reply #1 on: 17 May 2010, 05:22:00 »
I don't think so but can you explain a it more? What do you mean by custom?
Get the Vbros': Packs 1, 2, 3, 4, and 5!

Gwafu

  • Guest
Re: Custom Commands?
« Reply #2 on: 17 May 2010, 05:28:38 »
Like new commands. Like a command/skill that gives +any_stat_bonuses (Damage, sight, movement speed, etc.) to the target.

ElimiNator

  • Airship
  • ********
  • Posts: 3,391
  • The MegaGlest Moder.
    • View Profile
Re: Custom Commands?
« Reply #3 on: 17 May 2010, 05:43:28 »
You might be able to do that, can you give an example?
Get the Vbros': Packs 1, 2, 3, 4, and 5!

Gwafu

  • Guest
Re: Custom Commands?
« Reply #4 on: 17 May 2010, 05:47:18 »
What do you mean?
An example of an ability?

jda

  • Guest
Re: Custom Commands?
« Reply #5 on: 17 May 2010, 13:22:46 »
I assume you already know about the basic skills of the original Glest engine.

GAE (Glest Advanced Engines) implement what you seem to want, namelly through "effects".
Look at the GAE Guide on the Glest wikia, you'll be particularly interested in the "Effects" part (though others might be interesting too):
https://docs.megaglest.org/GAE/Guide
More detailed infos on the Effects (to get to this from the first page I mentioned, go up one level and then go to "The GAE Reference" -> "2.1 <effects>":
https://docs.megaglest.org/GAE/Reference#.3Ceffects.3E
Note: This is very outdated so much of what is listed as "not implemented yet" may actually already be in the latest GAE release (0.2.13 as of this writing). Go to the GAE section on this forum and ask about any particular element. ;)
« Last Edit: 18 June 2016, 19:08:52 by filux »

ElimiNator

  • Airship
  • ********
  • Posts: 3,391
  • The MegaGlest Moder.
    • View Profile
Re: Custom Commands?
« Reply #6 on: 17 May 2010, 17:48:20 »
But GAE is unstable so you might want to use vinila or Mega-glest. If you pick GAE I can't help but the with the others I can give you a hand.

What do you mean?
An example of an ability?
This is a stand skill from the archer:
Quote
      <skill>
         <type value="stop"/>
         <name value="stop_skill"/>      
         <ep-cost value="0"/>
         <speed value="1000"/>
         <anim-speed value="45"/>
         <animation path="models/archer_standing.g3d"/>
         <particles value="false">
         <sound enabled="false"/>
      </skill>
There are only a couple skills but you can modify them if you want:
Quote
      <skill>
         <type value="stop"/>
         <name value="run"/>      
         <ep-cost value="10"/>
         <speed value="500"/>
         <anim-speed value="20"/>
         <animation path="models/worker_mining.g3d"/>
         <particles value="true">
            <particle-file path="smoke_particles.xml"/>
         </particles>
         <sound enabled="true" start-time="0.5">
            <sound-file path="/sounds/archer_attack1.wav"/>
            <sound-file path="/sounds/archer_attack2.wav"/>
            <sound-file path="/sounds/archer_attack3.wav"/>
            <sound-file path="/sounds/archer_attack4.wav"/>
         </sound>
      </skill>
Dose this answer your question?
Get the Vbros': Packs 1, 2, 3, 4, and 5!

jda

  • Guest
Re: Custom Commands?
« Reply #7 on: 17 May 2010, 19:25:06 »
But GAE is unstable so you might want to use vinila or Mega-glest.
Fact? Or opinion?

ElimiNator

  • Airship
  • ********
  • Posts: 3,391
  • The MegaGlest Moder.
    • View Profile
Re: Custom Commands?
« Reply #8 on: 17 May 2010, 20:47:06 »
Fact as far as I know, Did they release a stable version yet?
Get the Vbros': Packs 1, 2, 3, 4, and 5!

jda

  • Guest
Re: Custom Commands?
« Reply #9 on: 17 May 2010, 22:04:39 »
I had a problem with loading back saved games (a feature which btw megaglest doens't even have AFAIK) on 0.2.12 (I think this was the first GAE release I ever used, but might have been 0.2.11).
That was promptly fixed on 0.2.12a and never had a problem with 0.2.12a.
Never had a problem with 0.2.12b either.
Never had a problem with 0.2.13.

You?

ElimiNator

  • Airship
  • ********
  • Posts: 3,391
  • The MegaGlest Moder.
    • View Profile
Re: Custom Commands?
« Reply #10 on: 18 May 2010, 04:43:47 »
I didn't download any versions in the last month but the last one I got it would always crash.
Get the Vbros': Packs 1, 2, 3, 4, and 5!

jda

  • Guest
Re: Custom Commands?
« Reply #11 on: 18 May 2010, 12:34:09 »
0.2.13 (latest as of now) was released April 18th.

Anyways... It crashed always... at what point?

What I'm thinking about...
I downloaded your brother tiger's Nature Wars mod and (besides a whole bunch of non-mod related junk bundled in the package ::) ) there was a map included in there: land_of_plenty.gbm (NOT land_of_plenty2.mgm ).
On GAE (and on vanilla Glest too), when I was selecting the map I wanted to play, it crashed (yes, I did have current GAE crash, please read on :P ) when that particular map was on the selection box (it must be read to display it's infos). This happened only with land_of_plenty.gbm
Noticed I boldified the .gbm extension just now?... Well, that's just it: WRONG EXTENSION. Looked at it on MG and it's an 8 players map which is not supported by the standard .gbm format! The correct extension for that map is .mgm. Indeed, given that extension both vanilla Glest and GAE will simply ignore it.

So, yes, GAE did crash but it wasn't GAE's fault, it was the modder's (either tiger or whoever gave the .gbm extension to a MegaGlest specific map). This reminds me of the sig of a moderator in the old mandrakeusers.org forum:
Quote
Linux doesn't crash, I crash Linux.
There is a difference and it does matter. For an end-user that just plays the game and addds some correctly packaged mods in the correct folders... GAE does NOT crash!
Now if you're modding Glest (any of the three engines) yourself, you might make an honest mistake such as that of the mentioned map and actually crash it.

Here's a simple tescase.
In your MegaGlest installation go to techs/megapack/factions/tech/units/swordman/ and run the following two commands on a terminal (you're using Linux, right?):
Code: [Select]
cp -v swordman_standing.g3d swordman_standing.g3d.bak
Code: [Select]
cp texture_swordman.tga swordman_standing.g3dThen run MegaGlest and choose to play the Tech faction: you'll crash MegaGlest. :P
After you've successfully crashed MegaGlest... get your swordman standing anim back:
Code: [Select]
mv -v swordman_standing.g3d.bak swordman_standing.g3d
So... when you were running GAE... what did you have in your installation? Was it all GAE compatible and proper?
Hey, I remember wciow's Dwarves actually crashed GAE (not vanilla) because some unit was missing the EP value or something. Apparently it's not mandatory in vanilla but it is in GAE, so I added <EP value = "0" /> and that was that. Simple. ;)
« Last Edit: 18 May 2010, 12:36:14 by jda »

ElimiNator

  • Airship
  • ********
  • Posts: 3,391
  • The MegaGlest Moder.
    • View Profile
Re: Custom Commands?
« Reply #12 on: 18 May 2010, 21:04:32 »
No actuality, the game came on and it only crashed about 20 min after playing (Always), and the auto repair toggle command crashed it too. I can't remember what else.
Get the Vbros': Packs 1, 2, 3, 4, and 5!

jda

  • Guest
Re: Custom Commands?
« Reply #13 on: 18 May 2010, 23:03:31 »
Well, I gave the above example(s) to show how you can crash (or in other cases messup and thus make it seem buggy) an otherwise solid piece of software...

I don't really know what may have caused that crash...

... But I remember crashing Glest or GAE (don't remember which now) with a bad part_proj.xml or part_splash.xml file. Interestingly, it seems it only loads those files when you do the first attack, not at startup as with all the unitname1.xml, unitname2.xml and such other files.
So... wondering... could it be a rather late game unit you only got to use in combat like when you were about 20 minutes into the game?

Or maybe you messed with something else in the data folder or... I dunno...

Didn't you get any gae-crash.log or glestadv-crash.log file? Checked glestadv.log?

Could be many things...
Did you open a bug ticket in the tracker then or posted in the gae subforum?

silnarm

  • GAE Team
  • Behemoth
  • ********
  • Posts: 1,373
    • View Profile
Re: Custom Commands?
« Reply #14 on: 19 May 2010, 03:13:20 »
He wasn't using a released version, he was using svn builds. End of story. The auto repair toggle button will not crash any released version as far as I'm aware.

Glest Advanced Engine - Code Monkey

Timeline | Downloads

jda

  • Guest
Re: Custom Commands?
« Reply #15 on: 19 May 2010, 04:03:43 »
You were using SVN builds, Elim?  :o :o :o :o :o :o :o

All your claims on GAE being unstable and crashing all the times ... based on ... SVN ?! ..  ::)
I'm speechless.

Look, SVN is unstable by definition. Ask your father.

ElimiNator

  • Airship
  • ********
  • Posts: 3,391
  • The MegaGlest Moder.
    • View Profile
Re: Custom Commands?
« Reply #16 on: 19 May 2010, 04:39:33 »
I wasn't talking about svn, maybe the auto repair toggle button didn't crash it but it would always crash. I will try the newest version not and get back to you.
Get the Vbros': Packs 1, 2, 3, 4, and 5!

jda

  • Guest
Re: Custom Commands?
« Reply #17 on: 19 May 2010, 13:19:18 »
So the 20 minutes after game start crash did happen on an actual stable release (as in a non-SVN, not alpha, non beta, non rc build...)?

Yeah, do try the latest and report back. Maybe better do it on the GAE section though.
We went so offtopic on this one I'd actually forgotten what it was about in the begining...  :o :O

Sorry, Gwafu.  :-[