Skip to content

Commit

Permalink
added armor_vs; now "damage_vs" works with "is_a"; packages (experime…
Browse files Browse the repository at this point in the history
…ntal)

Also:
- restored the "attack!" notification (will probably require limiting it a bit more)
- moved multi maps to res
- zipped jl4 map
- mods.txt replaced with "mods" keyword in campaign.txt
- "title" keyword in campaign.txt
- new constraint: a complex mission map must be stored as a zip file
  • Loading branch information
soundmud committed Jun 25, 2023
1 parent c5169cc commit 7c8fcb7
Show file tree
Hide file tree
Showing 185 changed files with 2,061 additions and 1,409 deletions.
35 changes: 0 additions & 35 deletions buildmultimapslist.py

This file was deleted.

89 changes: 0 additions & 89 deletions cfg/official_maps.txt

This file was deleted.

2 changes: 2 additions & 0 deletions cfg/package_servers.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
;uncomment a package server to activate it
;http://jlpo.free.fr/soundrts/packages/
5 changes: 5 additions & 0 deletions cfg/parameters.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,8 @@ soundpack = 0.8

[volume]
1000 = 0.5

[packages]
# A package is a folder or a zip file.
base = "res"
additional = ["", "user", "user/downloaded"]
12 changes: 5 additions & 7 deletions doc_src/src/en/mapmaking.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ then you can store your first multiplayer map in the "multi" folder.

If you are not allowed to write in the program files folder because you work in non-admin mode, you can store your working map file in the "multi"
folder in "C:\\Documents and Settings\\Your Login\\Application Data\\SoundRTS". This folder is created the first time you start SoundRTS, unless a "user" folder exists near soundrts.exe.
Another solution is to install SoundRTS in a folder where you are allowed to write, and to work in the folder mentionned in the previous paragraph.
Another solution is to install SoundRTS in a folder where you are allowed to write, and to work in the folder mentioned in the previous paragraph.

How to edit a map
"""""""""""""""""
Expand All @@ -37,9 +37,7 @@ A useful key combination is Control Shift F2: if you are the only human on the m
How to find and remove an error
"""""""""""""""""""""""""""""""

If, when you start the map, you get the message: "server error" and go back to the server menu, then the details of the error are in a file called "maperror.txt". This file is in your default temporary folder (for example "C:\\Documents and Settings\\Your Login\\Local Settings\\Temp\\soundrts") or in the SoundRTS folder.

In the same directory you may find additional (but cryptic) information in "server.log" or in "client.log".
If, when you start the map, you get a "map error" message and go back to the menu, then you may sometimes find additional (but cryptic) information in "client.log" or in "server.log", usually in the "user/tmp" folder.

If you still don't understand where the error is, feel free to contact me, directly or at the soundRTSChat list.

Expand Down Expand Up @@ -324,7 +322,7 @@ If you are allowed to write in the folder where SoundRTS (or SoundRTS test) is i

If you are not allowed to write in the program files folder because you work in non-admin mode, you can store your working map file in the "single"
folder in "C:\\Documents and Settings\\Your Login\\Application Data\\SoundRTS". This folder is created the first time you start SoundRTS.
Another solution is to install SoundRTS in a folder where you are allowed to write, and to work in the folder mentionned in the previous paragraph.
Another solution is to install SoundRTS in a folder where you are allowed to write, and to work in the folder mentioned in the previous paragraph.

Structure of the campaign folder
""""""""""""""""""""""""""""""""
Expand Down Expand Up @@ -496,7 +494,7 @@ Press PageUp or PageDown to select a terrain. The meaning of each terrain is sto
Apply a terrain to a square
"""""""""""""""""""""""""""

Press Enter to apply the terrain to the current square. Neighboring squares with the same caracteristics (ground and same height) will be linked automatically by a path. Different squares will have their path removed.
Press Enter to apply the terrain to the current square. Neighboring squares with the same characteristics (ground and same height) will be linked automatically by a path. Different squares will have their path removed.

Toggle path to a neighbor
"""""""""""""""""""""""""
Expand All @@ -516,4 +514,4 @@ Press F10 and quit the game to leave the editor. An autosave of the map will be
Add units
"""""""""

Open the file in a text editor. Use commands mentionned in `Defining the starting resources of the players`_.
Open the file in a text editor. Use commands mentioned in `Defining the starting resources of the players`_.
8 changes: 7 additions & 1 deletion doc_src/src/en/relnotes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ Release notes

.. contents::

1.3.7 (to be released)
-----

- removed the "maperror.txt" file (the information is already in the in-game error message).


1.3.6
-----

Expand Down Expand Up @@ -226,4 +232,4 @@ Interface improvements:
- the description of a patrol order will recapitulate all the waypoints
- bug fixed: pressing Tab would select blocked exits
- bug fixed: it is no longer possible to build another wall on the same exit
- zoom mode: if no building land is found while a build order has been validated on a sub-square, an error will be raised (instead of searching for a building land in the enclosing square
- zoom mode: if no building land is found while a build order has been validated on a sub-square, an error will be raised (instead of searching for a building land in the enclosing square
4 changes: 3 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
upnpclient

pygame>=2
pygame
git+https://github.com/soundmud/accessible_output2
chardet
cloudpickle
requests
tomli

docutils
cx_Freeze
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file added res/multi/jl4.zip
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 4 additions & 1 deletion rules2doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
from typing import Set

from soundrts.lib import log
from soundrts.lib.package import Package
from soundrts.paths import BASE_PACKAGE_PATH

log.add_console_handler()

Expand Down Expand Up @@ -147,7 +149,8 @@ def can_use(c, t):


rules = RulesForDoc()
rules.load(open("res/rules.txt").read(), open("res/ui/rules_doc.txt").read())
base = Package.from_path(BASE_PACKAGE_PATH)
rules.load(base.open_text("rules.txt").read(), base.open_text("ui/rules_doc.txt").read())
for cat in (
("1. Units", ("worker", "soldier")),
("2. Buildings", ("building",)),
Expand Down
4 changes: 1 addition & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
from cx_Freeze import Executable, setup

import builddoc
import buildmultimapslist
from soundrts.version import VERSION

if platform.system() == "Windows" and ".venv" not in sys.executable:
Expand All @@ -36,15 +35,14 @@
"silent": True,
"packages": [],
"excludes": ["Cython", "scipy", "numpy", "tkinter"],
"include_files": ["res", "single", "multi", "mods", "cfg", "doc"],
"include_files": ["res", "single", "mods", "cfg", "doc"],
"replace_paths": [("*", f"{full_version}:")],
}
executables = [
Executable("soundrts.py", base="Win32GUI"),
Executable("server.py", base=None),
]

buildmultimapslist.build()
builddoc.build()
if os.path.exists(destination):
print(f"{destination} already exists. Deleting...")
Expand Down
Loading

0 comments on commit 7c8fcb7

Please sign in to comment.