Author Topic: Anyone got PyRA2 working?  (Read 1978 times)

Offline R01

  • Heavyweight
  • Posts: 769
  • Rep: 1
  • Awards BOTM Winner
    • View Profile
    • Awards
Anyone got PyRA2 working?
« on: April 23, 2016, 09:23:36 AM »
First of all, sorry for making so many confusing threads, I'll try to keep them smaller.

While browsing the Internet I found this:
https://sourceforge.net/projects/pyra2/
Apparently this Python Script Collection allows to import .gmf(3d models of components, arenas, which I really want) and .bot files. Those can then be exported to VRML. As this would allow reverse engineering of stock components(and I really want to have the original stock components as a base) I'd like to get it working, however there are some issues:

This package was tested on Python 2.2 and 2.3, both versions are rather old now. It also needs the PIL imaging library and numeric(now replaced with numpy). I've tried to get the old script working on new versions by updating the numeric commands with numpy, however it wouldn't work in the end. Also tried to use python 2.3(because the numeric package for 2.2 isn't available), which doesn't work on Win7 SP1(SP1 breaks the old numeric functions), tried it in a windows XP VM, however I would still get a different error in the end.
Tournament History:
Showcases:
https://gametechmods.com/forums/index.php?topic=18882.0
https://gametechmods.com/forums/index.php?topic=19197.0

Offline Silverfish

  • The Hardest Part of Ending is Starting Again
  • Super Heavyweight
  • Posts: 844
  • Rep: 3
  • Welcome to the quiet before the storm hits...
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: Anyone got PyRA2 working?
« Reply #1 on: April 23, 2016, 09:44:19 AM »
If you're looking to edit .gmf files, my best guess would be use Dummy's editor:
http://beetlebros.gametechmods.com/files/GMFCompiler_FB.zip
Instructions:
http://beetlebros.gametechmods.com/modding.htm

and the gmf viewer:
https://gametechmods.com/forums/index.php?action=downloads;sa=downfile&id=103
just open a gmf with this, and it displays your model (hitbox in green).

imo these work well, and they DO work. I've used them myself.
If you really want to use pyRA2, I'm not your man. These are just an alternative.
Tourney stuffs:

"We need a new way to defeat them... Something they haven't seen. Something... no one... has ever seen..."
-Gelorum, Acceleracers: Ignition

Youtube(cuz I can't use the normal link): https://www.youtube.com/channel/UCZ8zJZecbrpqiZK2eLnKLAA

Offline R01

  • Heavyweight
  • Posts: 769
  • Rep: 1
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: Anyone got PyRA2 working?
« Reply #2 on: April 23, 2016, 10:25:56 AM »
If you're looking to edit .gmf files, my best guess would be use Dummy's editor:
http://beetlebros.gametechmods.com/files/GMFCompiler_FB.zip
Instructions:
http://beetlebros.gametechmods.com/modding.htm

and the gmf viewer:
https://gametechmods.com/forums/index.php?action=downloads;sa=downfile&id=103
just open a gmf with this, and it displays your model (hitbox in green).

imo these work well, and they DO work. I've used them myself.
If you really want to use pyRA2, I'm not your man. These are just an alternative.
I want to export the models of the .gmf file, so I can open them up in 3d editors like 3ds max, but thanks for the help
Tournament History:
Showcases:
https://gametechmods.com/forums/index.php?topic=18882.0
https://gametechmods.com/forums/index.php?topic=19197.0

Offline cephalopod

Re: Anyone got PyRA2 working?
« Reply #3 on: April 23, 2016, 10:29:19 AM »
Only component editing of stock gmfs in recent memory has all been done via literally editing the gmf file (Mr AS's new mod and Ironforge are prime examples)
PyRA2 is barely used to my knowledge, if at all.
Most people here don't mod and even more of those have probably never used PyRA2. I know I haven't.

bristol bot builders / two headed death flamingo / snappy robots
//
kindest and friendliest '13, '15, '16, '17 / favourite staff member '14, '15

Offline Silverfish

  • The Hardest Part of Ending is Starting Again
  • Super Heavyweight
  • Posts: 844
  • Rep: 3
  • Welcome to the quiet before the storm hits...
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: Anyone got PyRA2 working?
« Reply #4 on: April 23, 2016, 10:31:54 AM »
for what I know, they would use this:

gmf plugin for 3ds max:
https://gametechmods.com/forums/index.php?action=downloads;sa=downfile&id=100

I'm sorry if you do realize it, I'm just trying to be as helpful as I can.
Tourney stuffs:

"We need a new way to defeat them... Something they haven't seen. Something... no one... has ever seen..."
-Gelorum, Acceleracers: Ignition

Youtube(cuz I can't use the normal link): https://www.youtube.com/channel/UCZ8zJZecbrpqiZK2eLnKLAA

Offline Serge

  • *
  • Posts: 1530
  • Rep: 13
    • View Profile
    • http://www.q3k.org/
    • Awards
Re: Anyone got PyRA2 working?
« Reply #5 on: May 03, 2016, 05:06:39 PM »
If you're looking to edit .gmf files, my best guess would be use Dummy's editor:
http://beetlebros.gametechmods.com/files/GMFCompiler_FB.zip
Instructions:
http://beetlebros.gametechmods.com/modding.htm

and the gmf viewer:
https://gametechmods.com/forums/index.php?action=downloads;sa=downfile&id=103
just open a gmf with this, and it displays your model (hitbox in green).

imo these work well, and they DO work. I've used them myself.
If you really want to use pyRA2, I'm not your man. These are just an alternative.
I want to export the models of the .gmf file, so I can open them up in 3d editors like 3ds max, but thanks for the help

I got PyRA2 to 'work' a few times, but it was pretty involved (as it was written for a pretty old version of Python), and IMVHO not worth the effort. You can probably re-create its' functionality in $YOUR_FAVOURITE_LANGUAGE using its' source as reference in an evening or two - the GMF binary format isn't that difficult to parse if you just want mesh data. You could even decompile to ASCII GMF and somehow parse that with some crappy scripting (even straight awk if you enjoy pain).
home | twitter | yt | gmf de/compiler | component freedom | xmpp: q3k@q3k.org | email: q3k@q3k.org

Offline R01

  • Heavyweight
  • Posts: 769
  • Rep: 1
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: Anyone got PyRA2 working?
« Reply #6 on: May 03, 2016, 05:54:17 PM »
If you're looking to edit .gmf files, my best guess would be use Dummy's editor:
http://beetlebros.gametechmods.com/files/GMFCompiler_FB.zip
Instructions:
http://beetlebros.gametechmods.com/modding.htm

and the gmf viewer:
https://gametechmods.com/forums/index.php?action=downloads;sa=downfile&id=103
just open a gmf with this, and it displays your model (hitbox in green).

imo these work well, and they DO work. I've used them myself.
If you really want to use pyRA2, I'm not your man. These are just an alternative.
I want to export the models of the .gmf file, so I can open them up in 3d editors like 3ds max, but thanks for the help

I got PyRA2 to 'work' a few times, but it was pretty involved (as it was written for a pretty old version of Python), and IMVHO not worth the effort. You can probably re-create its' functionality in $YOUR_FAVOURITE_LANGUAGE using its' source as reference in an evening or two - the GMF binary format isn't that difficult to parse if you just want mesh data. You could even decompile to ASCII GMF and somehow parse that with some crappy scripting (even straight awk if you enjoy pain).
Was thinking about asking you about this thing.
I did try to somewhat update it(since getting the old version to run on an old system's still a pain that doesn't work)but in the end I spent about 3 hours(with my limited python knowledge) going from one error to the next, rewriting stuff until I got stuck.

While I could learn from the file format(GMF isn't that difficult, I'm surprised that there isn't an importer yet) it would be just too much time for me to spend into something like that. If you have an updated version or wanted to give it another go(so far there aren't any other tools that can import components into 3d model editors(would be really useful) and bot importing can have a few uses as well)) that would be a really useful thing, I can imagine spending weeks or even months without getting any good progress because I've never made something like this before and do not know other 3d model formats well at all. While it would be a new and interesting thing to learn I think that I'll just stop working on it at some point, that and there's plenty other things on the topic of game development that I wanted to do.
Tournament History:
Showcases:
https://gametechmods.com/forums/index.php?topic=18882.0
https://gametechmods.com/forums/index.php?topic=19197.0

Offline Serge

  • *
  • Posts: 1530
  • Rep: 13
    • View Profile
    • http://www.q3k.org/
    • Awards
Re: Anyone got PyRA2 working?
« Reply #7 on: May 03, 2016, 06:04:04 PM »
While I could learn from the file format(GMF isn't that difficult, I'm surprised that there isn't an importer yet) it would be just too much time for me to spend into something like that. If you have an updated version or wanted to give it another go(so far there aren't any other tools that can import components into 3d model editors(would be really useful) and bot importing can have a few uses as well)) that would be a really useful thing, I can imagine spending weeks or even months without getting any good progress because I've never made something like this before and do not know other 3d model formats well at all. While it would be a new and interesting thing to learn I think that I'll just stop working on it at some point, that and there's plenty other things on the topic of game development that I wanted to do.

Sorry, this was so long ago I'm not even sure into which backups I should be looking to find this. I'm pretty sure my changes are gone forever.

Some day, someone will write a proper GMF parsing library...
home | twitter | yt | gmf de/compiler | component freedom | xmpp: q3k@q3k.org | email: q3k@q3k.org