-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added missing file in texture override commit
- Loading branch information
Showing
8 changed files
with
283 additions
and
63 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,44 @@ | ||
# If you have the 'ModCreatorKit.sporemod' mod istalled: | ||
# 1. Open the game | ||
# 2. Open the console and use the cheat 'effectEditor' | ||
# 3. Every time you save this file, the effect will reload and show in the game | ||
# | ||
# You can also use this special effect in other parts of the game (such as skinpaints, terraform brushes, etc) | ||
# but to see the changes you need to reload manually the effect | ||
# (for example, use the terraform tool again, apply the skinpaint again, etc) | ||
particles particles-PinkFire | ||
color (2, 2, 0.8) (0.8, 2, 0.8) (2, 1, 0.8) -vary (0.1, 0.1, 0.1) | ||
alpha 0 2 0.5 2 0.5 1 0.5 0 0 0 0 0 1 0.5 1 0.5 2 0.5 0 0 0 2 0.5 1 0.5 0 | ||
size 0.2 0.4 0.2 -vary 0.2 | ||
rotate 100 109 -vary 0.1 | ||
source -box ( 0.2, 6, 6) | ||
emit -speed 0 -dir (0, 0, 0) (1, 1, 1) | ||
force -attractor (0, 0, 0) 20 -5 2 -4 5 -2 3 -2 | ||
#warp -spiral 0.1 | ||
#randomWalk -delay 1.5 -strength 0.3 -turn 0.25 | ||
life 10 8 -preroll 3 | ||
maintain 30 | ||
texture 0x001723BC -draw additive -light -noFog | ||
color (0.1620957, 0.764, 0.1574657) | ||
physics unk1 | ||
end | ||
|
||
# Defines a 'particles' component called 'testEPEffect' | ||
# The name is only important within the file, and has to be unique | ||
particles testEPEffect | ||
# How many seconds a particle lives before disappearing | ||
life 5 | ||
# Where the particles are emitted from; in this case, from a single point | ||
source -point | ||
# How many particles are spawned. This is animatable: | ||
# the value changes from 200 particles to 0. This loops every 2 seconds | ||
rate 200 0 -loop 2 | ||
# In which direction the particles are emitted: | ||
# Also the speed: 4 units per second | ||
emit -dir (0, 0, 1) 0.3 -speed 4 | ||
# Pulls the particles down as if there was gravity | ||
force -gravity 2 | ||
stretch 10 | ||
# Animates the rotation of the particle: 0 to 1 is a complete rotation | ||
rotate 0 1 | ||
# The color, also animated: from red to green | ||
color (0, 1, 0) | ||
# The opacity, also animated: from completely opaque to transparent when the particle is dying | ||
alpha 1 1 1 1 0 | ||
# The scale of the particle, animated | ||
size 0.1 0.2 0.1 | ||
|
||
# The name of the texture used. It must be a .rw4.dds and be in the 'animations~' folder | ||
texture effects-star | ||
particles particles-PinkGlow | ||
color (2, 2, 0.8) (0.8, 2, 0.8) (2, 1, 0.8) -vary (0.1, 0.1, 0.1) | ||
alpha 0 2 0.5 2 0.5 1 0.5 0 0 0 0 0 1 0.5 1 0.5 2 0.5 0 0 0 2 0.5 1 0.5 0 | ||
size 0.2 0.4 0.2 -vary 0.2 | ||
rotate 100 109 -vary 0.1 | ||
source -box ( 0.2, 5, 5) | ||
emit -speed 0.5 -dir (0, 0, 0) (1, 1, 1) | ||
force -attractor (0, 0, 0) 20 -5 2 -4 5 -2 3 -2 | ||
warp -spiral 0.1 | ||
randomWalk -delay 1.5 -strength 0.3 -turn 0.25 | ||
life 3 1 -preroll 3 | ||
maintain 30 | ||
texture 0x001723BC -draw additive -light -noFog | ||
color (1, 0.9, 0.9742857) | ||
physics unk1 | ||
end | ||
|
||
# Defines an effect called 'effect_editor' | ||
# Use this special name so you can see the changes while the game is opened | ||
effect _effect_editor | ||
particles testEPEffect | ||
|
||
effect _effect_editor -flags 0x10 | ||
lodDistances 100 200 400 700 1200 2400 | ||
particles particles-PinkFire -lodRange 1 4 -emitScale 1 1 1 1 -sizeScale 1 1 0.9 0.7 -alphaScale 1 1 1 0.1 | ||
particles particles-PinkFire -lodRange 1 4 -emitScale 1 1 1 1 -sizeScale 1 1 0.9 0.7 -alphaScale 1 1 1 0.1 | ||
|
||
sound -name ufo_sculpt_hit_med -soundFlags 0xa -field_18 0xCDCDCDCD -field_1C 0.05 -ignoreLength | ||
#sound -name be_details_windmill_04 -field_1C 4.65 -soundFlags 0xa #-field_20 20.0 | ||
end | ||
|
||
# Exports the effect so it can be used in the game | ||
export _effect_editor |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
#Sat Apr 06 22:45:17 CEST 2019 | ||
#Sun Feb 23 13:30:12 CET 2020 | ||
fxcFile=AUTO | ||
dontAskAgain_saveAsMod=false | ||
gameToExecute=GALACTIC_ADVENTURES | ||
dontAskAgain_removeItem=false | ||
hasSelectedStyle=true | ||
pathSpore=AUTO | ||
pathGA=C\:\\Program Files (x86)\\Games\\Spore | ||
selectedStyle=Default | ||
pathGA=AUTO | ||
selectedStyle=Dark | ||
isFirstTime=false | ||
pathCustom= | ||
gameCommandLine= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package sporemodder.file.rw4; | ||
|
||
import java.io.IOException; | ||
|
||
import emord.filestructures.StreamReader; | ||
import emord.filestructures.StreamWriter; | ||
import emord.filestructures.Stream.StringEncoding; | ||
|
||
public class RWTextureOverride extends RWObject { | ||
|
||
// This is actually the Light type, but Spore does not use it | ||
public static final int TYPE_CODE = 0x20008; | ||
public static final int ALIGNMENT = 4; | ||
|
||
public String name; | ||
|
||
public RWTextureOverride(RenderWare renderWare) { | ||
super(renderWare); | ||
} | ||
|
||
@Override public void read(StreamReader stream) throws IOException { | ||
if (stream.readLEInt() == 0xFB724FAA) { | ||
name = stream.readCString(StringEncoding.ASCII); | ||
} | ||
} | ||
|
||
@Override | ||
public void write(StreamWriter stream) throws IOException { | ||
if (name != null) { | ||
stream.writeLEInt(0xFB724FAA); | ||
stream.writeCString(name, StringEncoding.ASCII); | ||
} | ||
} | ||
|
||
@Override | ||
public int getTypeCode() { | ||
return TYPE_CODE; | ||
} | ||
} |
Oops, something went wrong.