Add mod template and Python launch scripts
- Created a new workshop.txt file for a mod template in Project Zomboid, including version, title, description, tags, and visibility settings. - Added a PowerShell script (launch_py.ps1) to set up a Python virtual environment, install dependencies, and run the main script. - Added a shell script (launch_py.sh) for launching a Python script with a virtual environment on Unix-like systems. - Included a basic mod template for creating fallout new vegas esp templates
This commit is contained in:
BIN
storage/game modding/fallout new vegas/Data/EmptyPlugin.esp
Normal file
BIN
storage/game modding/fallout new vegas/Data/EmptyPlugin.esp
Normal file
Binary file not shown.
@@ -0,0 +1,2 @@
|
||||
title=Mod Template World #1
|
||||
description=This world has one cell. A cell is 300x300 tiles.
|
||||
@@ -0,0 +1,22 @@
|
||||
function SpawnPoints()
|
||||
return {
|
||||
constructionworker = {
|
||||
{ worldX = 1, worldY = 1, posX = 127, posY = 254, posZ = 2 }
|
||||
},
|
||||
fireofficer = {
|
||||
{ worldX = 1, worldY = 1, posX = 127, posY = 254, posZ = 2 }
|
||||
},
|
||||
parkranger = {
|
||||
{ worldX = 1, worldY = 1, posX = 127, posY = 254, posZ = 2 }
|
||||
},
|
||||
policeofficer = {
|
||||
{ worldX = 1, worldY = 1, posX = 127, posY = 254, posZ = 2 }
|
||||
},
|
||||
securityguard = {
|
||||
{ worldX = 1, worldY = 1, posX = 127, posY = 254, posZ = 2 }
|
||||
},
|
||||
unemployed = {
|
||||
{ worldX = 1, worldY = 1, posX = 127, posY = 254, posZ = 2 }
|
||||
}
|
||||
}
|
||||
end
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 21 KiB |
@@ -0,0 +1,3 @@
|
||||
title=Mod Template World #2
|
||||
description=This map adds eight new cells around World #1.
|
||||
lots=ModTemplateWorld1
|
||||
@@ -0,0 +1,22 @@
|
||||
function SpawnPoints()
|
||||
return {
|
||||
constructionworker = {
|
||||
{ worldX = 1, worldY = 1, posX = 127, posY = 254, posZ = 2 }
|
||||
},
|
||||
fireofficer = {
|
||||
{ worldX = 1, worldY = 1, posX = 127, posY = 254, posZ = 2 }
|
||||
},
|
||||
parkranger = {
|
||||
{ worldX = 1, worldY = 1, posX = 127, posY = 254, posZ = 2 }
|
||||
},
|
||||
policeofficer = {
|
||||
{ worldX = 1, worldY = 1, posX = 127, posY = 254, posZ = 2 }
|
||||
},
|
||||
securityguard = {
|
||||
{ worldX = 1, worldY = 1, posX = 127, posY = 254, posZ = 2 }
|
||||
},
|
||||
unemployed = {
|
||||
{ worldX = 1, worldY = 1, posX = 127, posY = 254, posZ = 2 }
|
||||
}
|
||||
}
|
||||
end
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 55 KiB |
@@ -0,0 +1,4 @@
|
||||
name=Mod Template
|
||||
id=ModTemplate
|
||||
description=This is an example mod containing two maps.
|
||||
poster=poster.png
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 125 KiB |
BIN
storage/game modding/project zomboid/ModTemplate/preview.png
Normal file
BIN
storage/game modding/project zomboid/ModTemplate/preview.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 48 KiB |
@@ -0,0 +1,8 @@
|
||||
version=1
|
||||
title=Mod Template
|
||||
description=This is an example mod with two worlds. You can use this as a template for your own map mods.
|
||||
description=
|
||||
description=The first world has a single 300x300-tile cell.
|
||||
description=The second world adds cells all around the first world.
|
||||
tags=
|
||||
visibility=public
|
||||
5
storage/misc/python launch with cmd/launch_py.ps1
Normal file
5
storage/misc/python launch with cmd/launch_py.ps1
Normal file
@@ -0,0 +1,5 @@
|
||||
python -m venv venv; .\venv\Scripts\activate; pip install -r requirements.txt; python main.py
|
||||
pause
|
||||
|
||||
|
||||
# This script creates a virtual environment, activates it, installs the required packages from requirements.txt, and then runs the main.py script. Finally, it pauses the command prompt so you can see any output before it closes.
|
||||
3
storage/misc/python launch with cmd/launch_py.sh
Normal file
3
storage/misc/python launch with cmd/launch_py.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
python3 -m venv venv && source venv/bin/activate && pip install -r requirements.txt && python3 main.py
|
||||
|
||||
# modify for your needs, this is just an example of how to launch a python script with a virtual environment and requirements.txt file. Make sure to adjust the paths and commands as necessary for your specific project.
|
||||
Reference in New Issue
Block a user