Skip to content

Commit

Permalink
Fix paths
Browse files Browse the repository at this point in the history
  • Loading branch information
rxqd committed Jun 13, 2024
1 parent a9ea9f7 commit 1561d16
Show file tree
Hide file tree
Showing 13 changed files with 53 additions and 47 deletions.
File renamed without changes.
53 changes: 52 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,52 @@
# od_tools
# Log generator for [OpenDominion Game](https://github.com/OpenDominion/OpenDominion)

Converted from the script included in sim file from [Yami-10/OD-Simulator](https://github.com/Yami-10/OD-Simulator)

# The idea

I work on Linux so don't have Excel and has no ability to generate `log.txt` from sim file.

This tool writen in [GO](https://go.dev/) can generate `log.txt` from Excel file
both local and downloaded from Google Sheet. It should work in any Operation System.

The code contains only final script generation logic. All other things left the same in Excel file.

Remember to open Excel sim before generation. ALl formulas should run and update their values with Excel.

# Get binary

You can use prebuilt binaries at [Releases](https://github.com/rxx/od_tools/releases) or build from sources with

To install `go` check [instructions here](https://go.dev/doc/install)

and then run

```
go install github.com/rxx/od_tools/sim@latest
```

it installs to `GOPATH/bin` with a name `sim`.

Rename it whatever you like.

Make sure `GOPATH` is visible to the system. [This guide](https://go.dev/wiki/SettingGOPATH) will help you.

# Usage

Next will work for Linux and Mac

```
sim generate_log -sim OpenDominionSim.xlsm -result sim.txt
```

For windows you can also run `sim` from terminal or put command line to the exe options.

I don't have Windows and can't test and describe the actual process, it would be helpfull if someone describe that and make a pull request ^\_^

Get file from [Yami-10/OD-Simulator](https://github.com/Yami-10/OD-Simulator)

# Bug reports

If you see any issues or want an improvement, feel free to create an issue and describe the problem.

Write me in Discord @max_masterius
File renamed without changes.
2 changes: 1 addition & 1 deletion sim_log/go.mod → go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/rxx/od_sim
module github.com/rxx/od_tools

go 1.21.8

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.
45 changes: 0 additions & 45 deletions sim_log/README.md

This file was deleted.

0 comments on commit 1561d16

Please sign in to comment.