00411f015cf35d8cef8d5352a013500b34feca6f
Some code is now reusable
- openCSV()
- toKor()
- toEng()
the new translation syantax is
```golang
korvax := Translate{"Contraband"}
fmt.Println(korvax.Eng2Kor())
// or
fmt.Println(Translate{"KIHTYOMOLES"}.Kor2Eng())
```
output:
`Zelidovoso`
NMSlib
NMSlib is a GoLang package for dealing with converting Galactic coordinates to Portal codes and vice versa.
NMSlib also translates known Korvax words to English and back.
- Gek, Vykeen, etc will be added in the future
Installation
To install this module use go get
go get -u gitlab.com/bradley.richins/nmslib
Usage
Example:
package main
import (
"fmt"
"gitlab.com/bradley.richins/nmslib"
)
func main() {
portalcode := "006afa556c30"
tstvar, err := nmslib.P2gc(portalcode)
if err != nil {
panic(err)
}
fmt.Printf("Input:\t%s\nExpecting:\t042F:0079:0D55:006A\nHave:\t%s\n", portalcode, tstvar)
nmslib.CreateBanner(portalcode, "NewLennon.png", 0)
fmt.Println(nmslib.Korvax2Eng("eapoluch"))
fmt.Println(nmslib.Eng2Korvax("emergency"))
}
Creating a Glyph banner with CreateBanner()
This function takes 3 parameters:
- portalcode: 12 char hex string of portal location
- savename: Save location and name
- Horizontal/Vertical layout: 0 is horizontal, 1 is vertical
Example:
Horizontal Layout for Galactic Hub HUB10-6A Icarus Sun Eniwa 68/L3
nmslib.CreateBanner("006afa556c30", "NewLennon.png", 0)
Converting Portal code to Galactic address with P2gc()
This function only takes 1 parameter and returns a string
- portalcode: 12 char hex string of portal glyphs
Example:
ga, _ := nmslib.P3gc("006afa556c30")
fmt.Println(ga)
Output:
042F:0079:0D55:006A
Converting Galactic coordinates to Portal codes with Gc2p()
This function only takes 1 parameter and returns a string
- galacticaddress: 16 char 4 block hex address
Example:
pc, _ := nmslib.P3gc("042F:0079:0D55:006A")
fmt.Println(pc)
Output:
006AFA556C30
Translate Korvax to English with Korvax2Eng()
This function takes only 1 parameter and returns a string
- korvaxword: Any known Korvaxen word (ex. eapoluch)
Example:
fmt.Println(Korvax2Eng("eapoluch"))
Output:
emergency
Translate English to Korvax with Eng2Korvax()
This function takes only 1 parameter and returns a string
- engword: English word to attempt conversion
Example:
fmt.Println(Eng2Korvax("emergency"))
Output:
eapoluch
License
Description
Create No Mans Sky Portal Glyph Banner, convert Portal codes, Galactic coordinates, and translate in game languages. Language support: Korvax, Gek, Vy'keen, Atlas, English
Releases
8
NMSlib v1.0.1
Latest
Languages
Go
100%
