Modding Sky files

For those of us who are curious and like to poke around in the game's data files and scripts as well as glitching. Caters to anything from unit/building stats to level data to telling how to glitch and stories of game errors.
Post Reply
GoldStar611
BlackSect Creator
BlackSect Creator
Posts: 860
Joined: Sun Dec 02, 2007 1:16 am
Location: USA
Contact:

Modding Sky files

Post by GoldStar611 » Tue Nov 22, 2016 5:34 pm

place holder for now. I'll post some info shortly
Image
Image

Ormu
Turantul 1 (Veteran)
Turantul 1 (Veteran)
Posts: 840
Joined: Fri Dec 26, 2008 4:59 pm
Location: Finland

Re: Modding Sky files

Post by Ormu » Tue Nov 22, 2016 7:51 pm

GoldStar611 wrote: Yes, the sky files are in .BAS format but good news is that they have a fixed structure and can be easily edited with some tools that myself and another member have (@particular_member: I can't recall if we ever released the Blender import/export scripts).

But lets take this conversation about modding SKY files to the modding forum so we don't hijack Zidane's thread.
viewtopic.php?f=23&t=1650
Yeah, I think it's finally time to publish those tools. Just give me some time to sort all out...

The Blender plugin was once released but it only handles SKLTs. Texture mapping must be done by hand for now.
Image
Matthew Lever wrote:Take out Ormus as soon as you see them.
UA community Discord channel: https://discord.gg/7H4dFQH
Not all Ormus are mine. When in doubt, please ask...

GoldStar611
BlackSect Creator
BlackSect Creator
Posts: 860
Joined: Sun Dec 02, 2007 1:16 am
Location: USA
Contact:

Re: Modding Sky files

Post by GoldStar611 » Wed Nov 23, 2016 12:34 am

Steps using 1998.BAS as example:
1, Download the SET.BAS Compiler (BASEdit Beta) from viewtopic.php?f=23&t=1467
2, Install Python 2.7 and pyQt4 (Linux users can skip this step)
3, Open BASEdit Beta GUI program (bastoolsgui.py)
4, Open the SKY.BAS file in BASEdit
...
5, Navigate to "MC2 /OBJT 0/BASE/OBJT 1/EMBD/SKLT" and use the FORM -> Export FORM menu item. Save as complete.sklt
6, Installer the Blender plugins to import / export wireframe/skeleton files
7, Open Blender and import complete.sklt
8, Move/adjust/scale the verticies (but don't delete or add any verticies)
9, Export the modified SKLT to complete_modded.skl (not .sklt so you can open it easier in step 17)
...
17, In BASEdit, with SKY.BAS still open, choose Replace from the FORM menu to replace the SKLT
18, Replace using the file you exported from Blender (complete_modded.skl)
19, Save as 1988_mod.BAS file
20, Add to your UA game directory
21, Use the new SKY.BAS file in a level


Manually editing the XML files is only needed because I don't have "Replace FORM" function (steps 4.5, and 11-18). Such a function would be easy to add but would require some time that may not come soon.
Image
Image

GoldStar611
BlackSect Creator
BlackSect Creator
Posts: 860
Joined: Sun Dec 02, 2007 1:16 am
Location: USA
Contact:

Re: Modding Sky files

Post by GoldStar611 » Wed Nov 23, 2016 1:11 am

download/file.php?id=416

I quickly added "Replace FORM" function. I hope it works


Blender plugin:
viewtopic.php?f=23&t=464#p4721
Image
Image

User avatar
CharlotteLabyrinth
Turantul 1 (Veteran)
Turantul 1 (Veteran)
Posts: 357
Joined: Thu Mar 01, 2012 3:00 pm
Location: Schloss Charlottenburg..?

Re: Modding Sky files

Post by CharlotteLabyrinth » Thu Dec 01, 2016 2:12 pm

That was fast... I totally missed this whole thread by split seconds since the last time I left the forums about a week ago.

I am going to test this soon and will report back if I have any questions or problems with using it. But before I start, perhaps this is the right moment to reacquaint myself with associated information in older posts. Splendid work as always, both of you!
;----------------------------------------------------------
;
; Vielleicht der niedlichste Hubi, Knuddel.
;
;----------------------------------------------------------

Personal Declaration: I always use different usernames across different websites. Hence if you ever see my username is being used outside of Stoudson Corporation, I absolutely have no affiliation whatsoever with that!

GoldStar611
BlackSect Creator
BlackSect Creator
Posts: 860
Joined: Sun Dec 02, 2007 1:16 am
Location: USA
Contact:

Re: Modding Sky files

Post by GoldStar611 » Fri Dec 02, 2016 3:03 am

updated the instructions
Image
Image

Post Reply