Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - SleepKiller

Pages: [1] 2 3 ... 11
1
Released Assets / model-edit - v0.1.1
« on: August 04, 2017, 04:16:05 AM »
This here is a tool for editing detail information in a .model files produced by modemunge. It'll work (or it should) on any PC SWBF1/SWBFII .model file.

For usage instructions, information on how it works and more see the readme on GitHub.
https://github.com/SleepKiller/model-edit#model-edit

For a copy of the tool see the release page on GitHub.
https://github.com/SleepKiller/model-edit/releases

To learn about the workings on the tool see the source code on GitHub.
https://github.com/SleepKiller/model-edit

I made this over the course of this evening, it's not super advanced but it gets the job done. I wrote it in C# because  I wanted to play around with another language after writing swbf-unmunge in C++.

This also has to be the laziest release topic I've ever posted on this site.

2
SWBF1 Modding / Getting detailed models ingame experiments.
« on: July 25, 2017, 07:45:07 AM »
This topic is one I posted in the requests board and have since hijacked now talk about experiments of getting detailed models ingame.

Spoiler: Original Post (click to show/hide)

3
Released Assets / swbf-unmunge - v0.6.1
« on: July 06, 2017, 11:20:57 PM »
This here is a tool for reversing the munge process. It doesn't work 100% correctly and isn't finished yet but it can get a lot out of .lvl files.

Now before I go any further let me stress this I'm making this in my spare time for fun because I find it interesting to work on. I did not make with the intent of using it to get access to other modders assets without their permission. If you want to use it on a map another modder made to learn how they did something then that is probably fine, but if you want to use it so you can use something of their's without asking then that probably isn't okay. But I digress a tool is a tool, it isn't inherently evil or good. I know I would have loved to have this a few years ago when I lost one of my maps to the abyss and only had the .lvl of it.

While it does a good job in my tests on SWBFII files at getting stuff back it makes no effort to get it into a ready to munge state. If you want to munge a map you extract using this tool you'll still need to do some work, in this regard I will offer little to no help. Some file names will be wrong, some files will need fixing up manually and all the .req files will need to be recreated by hand.

Usage is straightforward like so. (It's a commandline app so launch a command prompt in the same directory with the file and application.)

Code: [Select]
swbf-unmunge <options>

Options:
 -file <filepath> Set the input file to operate on.
 -version <version> Set the game version of the input file. Can be 'swbf_ii' or 'swbf. Default is 'swbf_ii'.
 -imgfmt <format> Set the output image format for textures. Can be 'tga', 'png' or 'dds'. Default is 'tga'.
 -platform <format> Set the platform the input file was munged for. Can be 'pc', 'ps2' or 'xbox'. Default is 'pc'.

The contents of the input file will be saved into a folder of the same name, minus the file extension.

Find the source code on GitHub
https://github.com/SleepKiller/swbf-unmunge.
And hey would you look at that you can always find the most recent release on GitHub as well, isn't GitHub amazing.
https://github.com/SleepKiller/swbf-unmunge/releases.

If you would like a GUI for it you find one made by RepComm here. I haven't used it myself but it looks pretty solid, you will need to install Java though if you don't have it.
https://github.com/RepComm/SWBFUnmungeGUI/releases

If it crashes for you, hangs, says "Exception Occurred" or produces bad output feel free to tell me. Don't forget to say which file you were using it on.

4
Star Wars Battlefront II / SWBFII Split Screen Toolkit
« on: October 24, 2016, 12:22:37 AM »
This is a little something I have been working on for fun recently. It enables people to play Star Wars Battlefront II in a split screen mode on PC.

Spoiler: Image (click to show/hide)

Requirements
   As many XInput compliant controllers as you wish to have players. PS3 or PS4 controllers will work fine if you use something like SCP Toolkit.

   At least Windows 7, though I haven't tested it provided you have the runtimes below it should work.

   Non-Steam Version of SWBFII, the Steam version will not work unless you replace BattlefrontII.exe with the SWBFSpy version of the client.

   If you're lazy and on Windows 10 only bother downloading them if you get a "Runtime error" or something to that effect, the operating system may very well take care of getting dependencies for you.

   The core application requires Visual C++ Redistributable for Visual Studio 2015
   https://www.microsoft.com/en-nz/download/details.aspx?id=48145

   And the GUI requires .NET Framework 4.6.1 which you can get here.
   https://www.microsoft.com/en-nz/download/details.aspx?id=49981

   Optionally you can also install the SWBFII dedicated server software and use that for lower loading times.
   http://www.swbfgamers.com/index.php?topic=10619.msg106046#msg106046

Installation
   Copy all the contents of zip to the directory where your BattlefrontII.exe is.
   This is usually "C:\Program Files (x86)\LucasArts\Star Wars Battlefront II\GameData"

   Do not get BattlefrontII.exe confused with LaunchBFII.exe, if you don't see BattlefrontII.exe you're in the wrong place.

Usage
   Once installed simply start Split Screen GUI to configure and launch your play session. All the controls should have tooltips to inform you what they do.
   
   The map list supports common Windows controls like Double Clicking to add a single map, holding Control to select multiple items and drag-droping selections.

   The tool uses a pre-created profile to give you controls almost identical to the console version of the game. If you want to rebind them you'll have to set a player's name to SplitScreen using the GUI, or commandline tool, and rebind the controls using that player's screen. Once you've got them how you want exit and start the split screen session again to update the controls across all players.

Technical Overview
Spoiler (click to show/hide)

Change Log
Spoiler (click to show/hide)

Download it here! (Current Version 1.0.4)

If you do use it be sure to let me know how it goes and feel free to ask questions, especially if you encounter strange behaviour.

5
Released Assets / My Modtools Folder(s)
« on: August 06, 2015, 10:04:49 PM »
I went through and archived all my old modtools folders from my various PCs over the years. I figured I may as well release them on the off chance someone would find them interesting.

Since these are my entire modtools folder where I kept everything there will others assets in there. (Particully in the 2012 folder) I recognize that I should have properly documented what was mine and what wasn't at the time I did it properly, but I don't see much harm in releasing them since I think that for the most part authors are credited (at least in any project folders of interest) and cases where I did use a lot of other peoples assets were rare.

These are all compressed using 7zip, you will probably need that to open them.

I am uploading the 2012 folder, I will edit post when done. (It's 5.7GB and I'm on a 100KB/s upload speed, figured I would get the other two out first.)
2012 Folder (5.7GB Compressed Download)
2013 Folder (1.47GB Compressed Download)
2014 Folder (437MB Compressed Download)


6
Released Maps and Mods / SWBF1 Museum
« on: August 07, 2014, 07:28:58 PM »
Everything except below this line was written by Snake.

The SWBF1 Museum is here!!!!

WIP Thread

Good grief.. SO many people help it's hard to name them all.
The main modders involved were myself, SK, Unit 33, Sereja, and RC. A lot of thanks to Sereja and RC, who did a ton of modeling. This took, what, two years(?) to make.. It's definitely been a long road for all of us.
The great thing is I can credit the whole community on this. With all the info on the walls of the Museum, everyone is involved. It is not as complete as I would like but putting so much info on the walls was amazingly difficult and time consuming. Thanks to everyone who contributed. It's a great monument to SWBF1.


What to do in the Museum

There is a lot to do besides look at the Museum. There's paintball, laser tag, a deathmatch arena, Noobs to fight, and cars to race. Not to mention the hidden world underneath. (If you can find the holographic doorway) So I hope you all enjoy the thrills and sadness of the map. Remember all that SWBF has meant to us. There's been rivalries and arguments but in the end we all share a common bond, because of how few of us there are. Hopefully that will carry over to SWBF3. (I may see you guys there!)

DOWNLOAD
DOWNLOAD (MediaFire)

Well.. I guess this is it. I leave for college Saturday morning.. I'll be packing non-stop 'til then. Goodbye guys! God bless. :bye:

8
Released Assets / SleepKiller's Mungeless Light Changer
« on: May 28, 2014, 07:24:26 PM »
Are you sick and tired of people not being able to customize the lighting on your map after you've shipped it? Do you wish you didn't have to remunge just to change the lighting on your map? Do you wish you could just edit a single file and have the lighting be changed when you reload the map? Well now you can! Introducing the- Wait that joke is old.

So for those of you who don't know (most of you) I not too long ago made some nifty scripts for Snake's SWBF Museum, one of which let's you ship your map with the ability to change your world's lighting based off an lua script instead of having to remunge the world or munge your own lighting config file. (The script basically does the latter but dynamically and on demand.)

Installing and Integrating It
It is relatively simple to install and integrate first step you're going to do is download the zip file attached to this post. Once you have that extract the contents anywhere and leave a windows explorer window open at those extracted files.

Step 1.
Open your map's mission.req and add this section to it before the last } it's very important that you put it before the last curly bracket but after the second to last curly bracket. Got it?

Code: [Select]
REQN
{
"script"
"LightFunctions"
}

Step 2.
From the zip folder you downloaded copy LightFunctions.lua and put it into the same folder as your map's scripts. If you don't know what I'm talking about you need to learn to mod a bit more before trying to implement this ;)

Step 3.
Open your map lua scripts and find the line that your world.lvl is loaded on. It looks something like this ReadDataFile("dc:swbf4ever\\swbf4ever.lvl"), only with your map name instead of swbf4ever. Now once you've found that line put these three lines anywhere after it.

Code: Lua
  1. dofile("Addon/YOURMAPIDHERE/lighting.lua"); --This loads the lighting config stored as an lua script.
  2. SetLighting("Addon/YOURMAPIDHERE/Data/_LVL_PC/lighting.config"); --This calls the magical function that does everything.
  3. ReadDataFile("dc:lighting.config"); --This loads up the file made by the magical function.

Replace YOURMAPIDHERE with well, your map ID.

Step 4.
Take the file lighting.lua from the zip and place it in your Addon folder. (The one with addme.script in.)

Step 5.
Munge and you should now be done. Enjoy your new found ability to edit lighting in the map without remunging. Pro Tip: Restarting the map also reloads it.


If you encounter any problems while doing this post your code and detail the steps you took. So I can know where you went wrong or where I went wrong in explaining something.

9
Message me or post here if interested. This is important work. Help would be greatly appreciated.

10
Public Square / [code][/code] tags now support syntax hightlighting
« on: March 02, 2014, 05:35:18 PM »
I thought the title was pretty descriptive. Yesterday I tested it out, assuming no issues arise it'll stay installed. Using it is really simple just change

[code][/code]
to
[code=lua][/code]


Of course lua isn't the only language supported. The developers of the mod say it supports over 200 languages. Here are a couple of examples.

Code from SKFunctions.lua
Code: Lua
  1. --LogProgress
  2. --Creates a log entry, the file path will need editing for your map.
  3. --                                      String Bool
  4. function LogProgress(s,n)
  5.  
  6.         if(newlog == 0) then
  7.                 writeto("addon\\skmc2\\iofiles\\log.txt")
  8.                 write("Starting log. \nMap ID:")
  9.                 write(mapID)
  10.                 write("\n\n")
  11.         --      write(date("%c"))
  12.         --      write("\n")
  13.                 newlog = 1
  14.         end
  15.        
  16.        
  17.         if(s == nil) then --Has anything actually been sent to the funtion?
  18.                 appendto("addon\\skmc2\\iofiles\\log.txt")
  19.                 write("Bad argument sent to LogProgress, requires string or number. Exiting function.")
  20.                 write("\n\n")
  21.                 flush()
  22.         else
  23.                 appendto("addon\\skmc2\\iofiles\\log.txt")
  24.                 write(s)
  25.                
  26.                 if(n >= 1) then
  27.                         write("\n\n")
  28.                 end
  29.                
  30.                 flush()
  31.         end
  32.        
  33. end

Code from schMEe.au3
Code: AutoIt
  1. Func _MSH_get_parent_index($iThisTag)
  2.         For $iParent_index = $iThisTag To 1 Step -1
  3.                 If _MSH_TagIsPossibleChildOfParent($aMSHTagList[$iParent_index], $aMSHTagList[$iThisTag]) Then ExitLoop
  4.         Next
  5.         Return $iParent_index
  6. EndFunc   ;==>_MSH_get_parent_index

11
Star Wars Battlefront / Unity 3D Board
« on: February 17, 2014, 02:35:53 AM »
WHERE DID IT GO SLEEPKILLER? WHAT DID YOU DO SLEEPKILLER? WHY CAN'T I SEE IT SLEEPKILLER?

These are all fine questions in a single sentence...

The board has been privatised, bug Unit 33 about access.

12
SWBF 1 and 2 Tournaments / SWBFGamers 5v5 Second Round
« on: February 16, 2014, 05:26:59 PM »
Most of the matches from the first round were played. Thank you to all the teams that put in effort to make them happen. To the ones that didn't finish their matches, check your PMs.

Same drill as last time. Round 2 matches here and a list of participants here. The round ends on the 28th. Good  luck to all!

13
SWBF 1 and 2 Tournaments / SWBFGamers 5v5 First Round
« on: January 27, 2014, 04:40:07 PM »
It's all go now gents.

Here are the matches for the first round. The team representatives should get in touch with the other team representatives to make them happen. A list of teams and their members can be found here. The representative is usually the first person in the team.

Remember only Round 1 matches, if you do a match from another round prematurely I may discount it and send it back for a rematch.

14
Released Maps and Mods / SWBFGamers "highlander" Tournament Map
« on: January 14, 2014, 11:35:01 PM »
If you're reading this you are presumably wondering what this map is. The answer to that is simple, this is the map you'll be needing to compete in the SWBFGamers 5v5 that is happening.

Your second question is probably why do we need a mod map, I thought it was stock sides and Cloud City? Well, yeah you are 100% correct on that it is stock sides and stock Cloud City. And this is exactly why we need this map. It prevents people from using cheats such as radar or see through walls to gain an unfair advantage.

Download it here https://drive.google.com/file/d/0Byk6aK__xf0uRWdLQ0dyemZta28/edit?usp=sharing

Either me or Led will most likely have a local link up in a jiffy.

15
SWBF 1 and 2 Tournaments / SWBFGamers 5v5 Tournament Rules
« on: January 07, 2014, 04:58:57 AM »
All these rules are up for discussion. Feel free to dispute a rule, suggest something be reaffirmed in a different manner or even for a new rule to be added.

Team Rules
All teams shall be required to conform to these rules.
  • A team must have a unique name to go by.
  • A team must have a unique tag to put in front of their members' names. The tag should be related to the name of the team.
  • A team is required to have a representative that will serve as the face of the team. They will be responsible for organizing matches with other teams.
  • Each team can have no more than five members. If a player can't make a match the team is permitted to pull in a substitute. The substitute may be any player that is willing to participate. (Even one from another team.)

Rules Surrounding Mods
Any mod is permitted to be used, provided it conforms to the rules set out below.
A mod may not:
  • Directly provide a tactical/strategic advantage to a team (For instance, radar.)
  • Provide a excessive combat advantage to a player (For instance, see through walls/wall hacks.)
A mod may:
  • Re-skin a map and or sides for the sake of making the game conform to oneself's aesthetic preference.
  • Modify explosion/laser effects.
  • Replace the stock reticules with ones more fitting to the player's liking.

Layout of a Match
Both teams are expected to work out together a time to have the match before a deadline set by the match admin has elapsed. In the event of the teams failing to do this a tournament admin will reach out to the teams to find out why they failed to have the match. The admin based off whatever info he ascertains may decide to allow the teams more time, award the match to one team or declare the match a draw by default. (In event of a draw neither team gets a point for the match.)

Once it has reached the scheduled time for the match to begin both teams have ten minutes for all five of members (or substitute) to join. Once that time has elapsed he match begins. If one team fails to muster five players they can choose to concede then and there or fight without a complete team. A game may start without a match admin present, however if the match ends in a dispute it may just be sent back to a rematch.

You are not permitted to leave the CP you spawn at until the match has begun. You must also not fire any weapons, throw any grenades or deploy any items. (Mines, health kits, etc)

When the match begins it is normal SWBF, save a few things. A team may have no more than one of each class at a time. You should work with your team to determine what classes everyone will play before the match begins. The admin at the match is allowed to decide what happens when a team has two classes of the same kind in play at once. They may award the match to the other team, warn them to change classes or ask the other team what they want to happen.

Tournament and Match Admins
Anyone may sign up to become an admin. Do so visit here http://www.swbfgamers.com/index.php?topic=7451.0, put forward a good application and don't just ask to become one. State which kind you would like to be as well and if you are capable of attending matches. There are two kinds of admins, Tournament and Match.

Tournament Admins have various powers and abilities during the tournament. They may:
  • Promote people to Match Admins.
  • Decide the outcome of a disputed match.
  • Remove a team from the tournament.
  • Ban a person from partaking in the tournament.
  • Make a change to the tournaments rules.
All these powers are only to be used after talking to other tournament admins. If a tournament admin is found to be corrupt they can be removed by the tournament host. In addition they may also exercise any power granted to a match admin or any power granted to them in another section of the rules.

A Match Admin is the most important admin and I am hoping we get a few of them. They are expected to be objective and not to voice their opinion on what the match outcome will be. Their role and powers are describe in Layout of a Match.

Disputed Matches
When a team accuses another team of having defeated them unfairly the match becomes disputed. When a match is disputed a tournament admin will get in touch with both teams via the private message system on the forums. Any public flaming/trolling, posting of evidence or just making a scene about it may cause your team to have a weaker case.

If you wish to dispute a match contact a tournament admin. Submit any evidence you may have in your first PM as to avoid complications.




Well that took me a while to write up. I probably missed something and made a million typos. Feel free to discuss the rules, but do so in a civilized manner.

Pages: [1] 2 3 ... 11