Skip to content
This repository was archived by the owner on Dec 5, 2018. It is now read-only.

Commit 23c7c24

Browse files
version 9.0.2
0 parents  commit 23c7c24

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+600
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
spatial.log
2+
spatialos_worker_packages.json
3+
build/

README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# BlankProject
2+
---
3+
4+
*Copyright Improbable 2016*
5+
6+
- *Accompanying Tutorial*: [spatialos.improbable.io/docs/latest/tutorials/your-first-project/lesson1](https://spatialos.improbable.io/docs/latest/tutorials/your-first-project/lesson1)
7+
8+
- *GitHub Repository*: [github.com/spatialos/BlankProject](https://github.com/spatialos/BlankProject)
9+
10+
---
11+
12+
## Introduction
13+
14+
This is a blank SpatialOS project that you can use to build your own SpatialOS application.
15+
16+
It contains:
17+
18+
* A SpatialOS project descriptor.
19+
* Unity worker
20+
* Bare-bones Launch Configurations for automatically and manually launching workers.
21+
* Bare-bones Client and Physics Scenes with a `Bootstrap.cs` file.
22+
* An example deployment configuration, `deploy.json`.
23+
* `.gitignore` files for a SpatialOS project.
24+
25+
## Using the BlankProject
26+
27+
For instructions on how to use and set-up this BlankProject, follow the Your First Project tutorial, available in
28+
the [Improbable documentation](https://spatialos.improbable.io/docs/).
29+
30+
To report bugs or to give feedback on this project, please contact SpatialOS Support.

default_launch.json

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"template": "small",
3+
"world": {
4+
"chunkEdgeLengthMeters": 50,
5+
"snapshots": {
6+
"snapshotWritePeriodSeconds": 0
7+
},
8+
"dimensions": {
9+
"xMeters": 8000,
10+
"zMeters": 8000
11+
},
12+
"legacyFlags": [
13+
{
14+
"name": "load_snapshot_at_startup",
15+
"value": "true"
16+
},
17+
{
18+
"name": "snapshot_storage_type",
19+
"value": "file"
20+
},
21+
{
22+
"name": "snapshot_source_file",
23+
"value": "snapshots/initial_world.snapshot"
24+
}
25+
]
26+
},
27+
"workers": [
28+
{
29+
"worker_type": "UnityFSim",
30+
"load_balancing": {
31+
"static_hex_grid": {
32+
"worker_radius_meters": 5000.0,
33+
"grid_width": 1,
34+
"grid_height": 1
35+
}
36+
}
37+
}
38+
]
39+
}

deploy.json

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"template": "small",
3+
"world": {
4+
"chunkEdgeLengthMeters": 50,
5+
"snapshots": {
6+
"snapshotWritePeriodSeconds": 0
7+
},
8+
"dimensions": {
9+
"xMeters": 8000,
10+
"zMeters": 8000
11+
},
12+
"legacyFlags": [
13+
{
14+
"name": "load_snapshot_at_startup",
15+
"value": "true"
16+
},
17+
{
18+
"name": "snapshot_storage_type",
19+
"value": "remote"
20+
}
21+
]
22+
},
23+
"workers": [
24+
{
25+
"worker_type": "UnityFSim",
26+
"load_balancing": {
27+
"dynamic_loadbalancer": {
28+
"worker_scaler_config": {
29+
"constant_config": {
30+
"num_workers": 4
31+
}
32+
},
33+
"worker_placer_config": {
34+
"random_params": {}
35+
},
36+
"loadbalancer_config": {
37+
"min_range_meters": 500.0,
38+
"max_range_meters": 5000.0,
39+
"speed_meters_per_second": 100.0,
40+
"expansion_time_millis": 60000
41+
}
42+
}
43+
}
44+
}
45+
]
46+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package improbable.general;
2+
3+
component WorldTransform {
4+
// Schema file ID, unique within the project
5+
id = 1000;
6+
7+
// Entity's true transform within the simulation
8+
EntityPosition position = 1;
9+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package improbable.player;

spatialos.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"name": "insert_your_project_name_here",
3+
"project_version": "0.0.2",
4+
"sdk_version": "9.0.2",
5+
"dependencies": [
6+
{"name": "WorkerSdkSchema", "version": "9.0.2"}
7+
]
8+
}

workers/gsim/.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
spatialos_nexus.sbt
2+
spatialos_pack.sbt
3+
.spatialos
4+
generated
5+
project
6+
target
7+
build.json
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"build": {
3+
"tasks_filename": "build.json",
4+
"generated_build_scripts_type": "gsim"
5+
}
6+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<!-- For assistance related to logback-translator or configuration -->
4+
<!-- files in general, please contact the logback user mailing list -->
5+
<!-- at http://www.qos.ch/mailman/listinfo/logback-user -->
6+
<!-- -->
7+
<!-- For professional support please see -->
8+
<!-- http://www.qos.ch/shop/products/professionalSupport -->
9+
<!-- -->
10+
<configuration scan="false" debug="false">
11+
12+
<!-- Appenders Definitions Starts -->
13+
<appender name="stdout" class="ch.qos.logback.core.ConsoleAppender">
14+
<encoder>
15+
<pattern>%date{HH:mm:ss.SSS} %-5level[%logger{36}] %m%n</pattern>
16+
</encoder>
17+
</appender>
18+
19+
<appender name="RollingFileAppender" class="ch.qos.logback.core.rolling.RollingFileAppender">
20+
<File>logs/atmos.log</File>
21+
<encoder>
22+
<pattern>%date{ISO8601} %-5level [%logger{36}] [%X{akkaSource}] [%X{sourceThread}] [%X{traceId}] : %m%n
23+
</pattern>
24+
</encoder>
25+
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
26+
<fileNamePattern>logs/atmos.log.%d{yyyy-MM-dd-HH}</fileNamePattern>
27+
</rollingPolicy>
28+
</appender>
29+
<!-- Appenders Definitions Ends-->
30+
31+
<!-- Loggers Definition Starts -->
32+
<root level="INFO">
33+
<appender-ref ref="stdout"/>
34+
</root>
35+
<!-- Loggers Definition Ends -->
36+
37+
38+
</configuration>

0 commit comments

Comments
 (0)