Skip to content

Commit

Permalink
rename all packages
Browse files Browse the repository at this point in the history
  • Loading branch information
srliao committed Nov 9, 2021
1 parent edbadc2 commit 5350bf8
Show file tree
Hide file tree
Showing 213 changed files with 434 additions and 2,461 deletions.
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ GSim is a Monte Carlo simulation tool used to model team dps. It allows for the

# Getting started

GSim now has a graphical desktop application available (previous web version discontinued due to performance issues). You can find the repo [here](https://github.com/genshinsim/gsimui) or download the latest [release](https://github.com/genshinsim/gsimui/releases).
GSim now has a graphical desktop application available (previous web version discontinued due to performance issues). You can find the repo [here](https://github.com/genshinsim/gcsimui) or download the latest [release](https://github.com/genshinsim/gcsimui/releases).

In addition, you can visit the gsim's website at [https://www.gcsim.app/](https://www.gcsim.app/). On there you will find pre-written action list to use with your teams (so you do not have to build your own if you do not wish to). This is still a work in progress and will grow over time.

Expand All @@ -17,13 +17,12 @@ The project is still currently under heavy development. Not every character/weap
If you are looking to contribute, the following are some key areas that you can help out with. If you're interested, please don't hesistate to reach out on the sim's [discord](https://discord.gg/m7jvjdxx7q)

- Comprehensive frame counts of every character's abilities, including but not limited to:
- Hit mark frame (not just animation frame, which is currently in the KQM library)
- Cooldown start frame
- Energy drain frame
- Particle proc frame (relative to hit mark)
- Hit mark frame (not just animation frame, which is currently in the KQM library)
- Cooldown start frame
- Energy drain frame
- Particle proc frame (relative to hit mark)
- Team comp damage validation between actual game play and sim. This is done by recording videos of actual gameplay footage, and then reproducing the same team/artifact/items/targets in the simulator and comparing results frame by frame. This means both comparing the damage output as well as the reactions. The simulator should be able to reproduce actual gameplay faithfully.
- Building action list for various common team comps and comparing/validating the result vs actual in game gameplay
- Helping with documenting the sim in the wiki
- Further testing of in game reactions, primarily EC and chain freeze duration.
- Just in general using the sim for calculations/weapon comparisons/day 1 testing etc...

9 changes: 4 additions & 5 deletions cmd/calc/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@ import (
"log"
"os"

"github.com/genshinsim/gsim"
"github.com/genshinsim/gsim/internal/logtohtml"
"github.com/genshinsim/gsim/pkg/calcqueue"
"github.com/genshinsim/gsim/pkg/core"
"github.com/genshinsim/gsim/pkg/parse"
"github.com/genshinsim/gcsim/internal/logtohtml"
"github.com/genshinsim/gcsim/pkg/calcqueue"
"github.com/genshinsim/gcsim/pkg/core"
"github.com/genshinsim/gcsim/pkg/parse"
)

func main() {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
24 changes: 12 additions & 12 deletions cmd/gsim/main.go → cmd/gcsim/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ import (
"regexp"
"strings"

"github.com/genshinsim/gsim"
"github.com/genshinsim/gsim/internal/logtohtml"
"github.com/genshinsim/gsim/pkg/core"
"github.com/genshinsim/gsim/pkg/parse"
"github.com/genshinsim/gcsim"
"github.com/genshinsim/gcsim/internal/logtohtml"
"github.com/genshinsim/gcsim/pkg/core"
"github.com/genshinsim/gcsim/pkg/parse"
"go.uber.org/zap"
)

Expand Down Expand Up @@ -122,7 +122,7 @@ func main() {
// log.Println(opts)
// defer profile.Start(profile.ProfilePath("./")).Stop()

var result gsim.Result
var result gcsim.Result
//if debug we're going to capture the logs
if opts.Debug {
r, w, err := os.Pipe()
Expand All @@ -145,7 +145,7 @@ func main() {

opts.DebugPaths = []string{"gsim://"}

result, err = gsim.Run(data.String(), opts)
result, err = gcsim.Run(data.String(), opts)
if err != nil {
log.Println(err)
os.Exit(1)
Expand All @@ -170,7 +170,7 @@ func main() {
result.Debug = out

} else {
result, err = gsim.Run(data.String(), opts)
result, err = gcsim.Run(data.String(), opts)
if err != nil {
log.Println(err)
os.Exit(1)
Expand Down Expand Up @@ -208,7 +208,7 @@ func main() {

}

func runSeeded(data string, seed int64, opts core.RunOpt, file string) (gsim.Stats, error) {
func runSeeded(data string, seed int64, opts core.RunOpt, file string) (gcsim.Stats, error) {
r, w, err := os.Pipe()
if err != nil {
log.Println(err)
Expand All @@ -232,14 +232,14 @@ func runSeeded(data string, seed int64, opts core.RunOpt, file string) (gsim.Sta
parser := parse.New("single", data)
cfg, _, _ := parser.Parse()

sim, err := gsim.NewSim(cfg, seed, opts)
sim, err := gcsim.NewSim(cfg, seed, opts)
if err != nil {
return gsim.Stats{}, err
return gcsim.Stats{}, err
}

v, err := sim.Run()
if err != nil {
return gsim.Stats{}, err
return gcsim.Stats{}, err
}

w.Close()
Expand Down Expand Up @@ -311,7 +311,7 @@ func runMulti(files []string, w, i int) error {
opts.LogDetails = false

fmt.Printf("%60.60v |", f)
r, err := gsim.Run(data.String(), opts)
r, err := gcsim.Run(data.String(), opts)
if err != nil {
log.Fatal(err)
}
Expand Down
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 5350bf8

Please sign in to comment.