project-navigation
Personal tools

Author Topic: Help with moding  (Read 6997 times)

Offline Valis

  • Rookie
  • ***
  • Posts: 77
    • View Profile
Help with moding
« on: March 15, 2009, 12:18:50 am »
I need a little help with one thing I want to do.

Just for fun I wanted to add the Holey Hand Grenade from Antioch to the game. For that I copied the research and the weapon description for the plasma granade. With no modifications to the specs of the granade I wanted to see if it works. When I am testing it the granade is researchable, producable, equipable but I can not get it to pop up the fire mode menus and throw/lob it :/

I am talking here about modding the base 2.2.1. I see there plasma grenade is in a diffrent file than the rest of the weapons I moded in the other thread. Is there something I missed?

For your information I wanted it to have 9 'lob' modes named like 'Lob after1', 'Lob after 2' and s on ;) and only the right one would deal damage :D

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Help with moding
« Reply #1 on: March 15, 2009, 09:00:29 am »
maybe you forgot to rename the weapon_mod definition inside of the copied plasmagrenade spec? it must have the same name as the item you are trying to create.

Offline Captain Bipto

  • Squad Leader
  • ****
  • Posts: 115
    • View Profile
Re: Help with moding
« Reply #2 on: March 16, 2009, 07:47:11 am »

Offline Valis

  • Rookie
  • ***
  • Posts: 77
    • View Profile
Re: Help with moding
« Reply #3 on: March 16, 2009, 08:38:33 am »
http://www.youtube.com/watch?v=xOrgLj9lOwk

Nay, I already consulted this film before posting here aobut it ;)

Quote
maybe you forgot to rename the weapon_mod definition inside of the copied plasmagrenade spec? it must have the same name as the item you are trying to create.

I think that was the only one line I did not check :/ Now it works and I will post it later afternoon. The blast is not so fun to look at, are there any other animations for the blast I could use, for example the rocket launcher? Will it work with something like a granade?

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Help with moding
« Reply #4 on: March 16, 2009, 07:05:06 pm »
you can even do new particles - see our particle guide on the wiki

Offline Valis

  • Rookie
  • ***
  • Posts: 77
    • View Profile
Re: Help with moding
« Reply #5 on: March 16, 2009, 08:47:42 pm »
Wow, nice. I will have to dig into that on the weekend.


Another question then:
For now I modify game files.

1. Can I add new files to the game?
2. Also, can files have mixed content? For example can a file contain research and weapon definition.

I aim at the goal of only adding file sets that could complement each other so for example someone who wants to incorporate 2 mods into the game does not have to merge the files. It would also the more secure not to mingle with the orginal files.

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Help with moding
« Reply #6 on: March 17, 2009, 07:41:08 am »
1.) yes
2.) yes

it would be nice if you would do a seperate pk3 file (zip file) with all the files you added.

Offline Valis

  • Rookie
  • ***
  • Posts: 77
    • View Profile
Re: Help with moding
« Reply #7 on: March 17, 2009, 11:09:43 am »
Do you mean I can add any files with the extention 'ufo' and they will be 'precompiled' into the game on startup? That would be great. I will rearange my MODs asap.

Offline BTAxis

  • Administrator
  • PHALANX Commander
  • *******
  • Posts: 2607
    • View Profile
Re: Help with moding
« Reply #8 on: March 17, 2009, 11:37:52 am »
Scripts aren't compiled, they're just parsed.