Skip to content

Commit

Permalink
[release] v1.0 Public Release
Browse files Browse the repository at this point in the history
  • Loading branch information
Vel-San committed May 2, 2021
1 parent f1ffa0c commit dd091a9
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 13 deletions.
9 changes: 5 additions & 4 deletions Config/MovieAdsRemover_Config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
bCompletelyDisable=true
# Replace the movies with a texture image/GIF that you can specify below
bReplaceWithTexture=true
# Name of the texture Package
sPackageName=MARTex.utx
# First, make sure the image you are trying to import is:
# A power-of-two number of pixels across (e.g. 1x1, 16x4, 64x128, 256x256, ...) up to 1024x1024.
# Using 8-bit color (256 color indexed) BMP or PCX for UT; 8-bit indexed BMP or PCX, 24 bit or 32 bit TGA or DDS for UT2003.
# Saved in .pcx or .bmp for UT; saved in .pcx, .bmp, targa, DXT or UPaint for UT2003.
# Saved in .pcx or .bmp or .dds
# Import to KF-SDK. In-game they will automatically be downscaled to fit view of w=320 h=240
# This is just an `Image`
; sTextureName=MARTex.AT_FirePlace
# This is a `GIF`
# This is a `GIF`, recommended size is 256x256
# A guide on how to easily create GIFs as textures will be provided soon
sTextureName=MARTex.Doro.Blood_a01
# FPS of the Animated GIF/Texture - if set to 0, FPS will always be same
# as the Player's own FPS. This is sometimes problematic if you have 60+ FPS
Expand Down
8 changes: 3 additions & 5 deletions MovieAdsRemover/Classes/MovieAdsRemover.uc
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@

class MovieAdsRemover extends Mutator Config(MovieAdsRemover_Config);

#exec OBJ LOAD FILE=MARTex.utx

// Config Vars
var config bool bCompletelyDisable, bReplaceWithTexture;
var config string sTextureName;
var config string sPackageName, sTextureName;
var config float fMaxFPS;

// Local Vars
Expand All @@ -20,7 +18,7 @@ replication
{
unreliable if (Role == ROLE_Authority)
bCompletelyDisable,bReplaceWithTexture,
sTextureName,
sPackageName,sTextureName,
fMaxFPS;
}

Expand All @@ -33,7 +31,7 @@ simulated function PostBeginPlay()
class'MovieAdsRemover'.default.Mut = self;

// Make sure Clients also download the Texture Package
AddToPackageMap("MARTex.utx");
AddToPackageMap(sPackageName);
}

simulated function Tick(float DeltaTime) {
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# CustomLobbyMenuADs
# MovieAdsRemover

Completely disable LobbyAdMenu (Movie section) or (WIP - Show your custom image (as a .utx))
Completely disable LobbyAdMenu (Movie section) or show your custom image/GIF for all players
22 changes: 20 additions & 2 deletions Workshop-text/Workshop-Text
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Remove 'Movies' section from the Lobby
[b]Features[/b]

- Completely hide the Movies panel
- Replace 'Movies' with a custom Texture
- Replace 'Movies' with a custom Texture (IMGs, GIFs etc..)

[h1][b][u]Credits[/u][/b][/h1]

Expand All @@ -25,7 +25,25 @@ Remove 'Movies' section from the Lobby
[h1][b][u]Sample Config[/u][/b][/h1]

[code]

[MovieAdsRemover.MovieAdsRemover]
# Removes the 'Movies' section completely
bCompletelyDisable=true
# Replace the movies with a texture image/GIF that you can specify below
bReplaceWithTexture=true
# Name of the texture Package
sPackageName=MARTex.utx
# First, make sure the image you are trying to import is:
# A power-of-two number of pixels across (e.g. 1x1, 16x4, 64x128, 256x256, ...) up to 1024x1024.
# Using 8-bit color (256 color indexed) BMP or PCX for UT; 8-bit indexed BMP or PCX, 24 bit or 32 bit TGA or DDS for UT2003.
# Saved in .pcx or .bmp or .dds
# Import to KF-SDK. In-game they will automatically be downscaled to fit view of w=320 h=240
# This is a `GIF`, recommended size is 256x256
# A guide on how to easily create GIFs as textures will be provided soon
sTextureName=MARTex.Doro.Blood_a01
# FPS of the Animated GIF/Texture - if set to 0, FPS will always be same
# as the Player's own FPS. This is sometimes problematic if you have 60+ FPS
# then the animation will be super fast!
fMaxFPS=60
[/code]

[h1][b][u]File Names[/u][/b][/h1]
Expand Down

0 comments on commit dd091a9

Please sign in to comment.