[RELEASE] Hero Online (Hero Plus) Full Database + Server Emulator

Page 3 of 5 FirstFirst 12345 LastLast
Results 31 to 45 of 69
  1. #31
    Newbie Ziyanabi is offline
    MemberRank
    May 2020 Join Date
    3Posts

    Re: [RELEASE] Hero Online (Hero Plus) Full Database + Server Emulator

    [RELEASE] Hero Online (Hero Plus) Full Database + Server Emulator
    thank you :)

  2. #32
    Member fallconecz is offline
    MemberRank
    Nov 2013 Join Date
    Czech RepublicLocation
    53Posts

    Re: [RELEASE] Hero Online (Hero Plus) Full Database + Server Emulator

    I dont get time i'm very very busy :/ i will make it later, i swear

  3. #33

    Re: [RELEASE] Hero Online (Hero Plus) Full Database + Server Emulator

    Tbl-Editor Error

    Korean, not English, is broken.
    Can you support a language other than English?

  4. #34
    Newbie DarKlFatE is offline
    MemberRank
    Jun 2020 Join Date
    1Posts

    Re: [RELEASE] Hero Online (Hero Plus) Full Database + Server Emulator

    Hello, anyone know the entire line of command to spawn a boss? I tried to use "/summon 41671" and nothing, 41671 is the code for Hohanma.

  5. #35
    Newbie mstyksp is offline
    MemberRank
    Jun 2020 Join Date
    1Posts

    Re: [RELEASE] Hero Online (Hero Plus) Full Database + Server Emulator

    help




    - - - Updated - - -

    At line:1 char:9+ $GOPATH/go.mod exists but should not+ ~You must provide a value expression following the '/' operator.At line:1 char:9+ $GOPATH/go.mod exists but should not+ ~~~~~~Unexpected token 'go.mod' in expression or statement. + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException + FullyQualifiedErrorId : ExpectedValueExpression

  6. #36
    Registered thellobo is offline
    MemberRank
    Jan 2020 Join Date
    SP,BrazilLocation
    9Posts

    Re: [RELEASE] Hero Online (Hero Plus) Full Database + Server Emulator

    is there a tutorial on how to put online? never saw the game wanted to learn how I leave online for testing

  7. #37
    Alpha Member john007 is offline
    Alpha MaleRank
    Dec 2005 Join Date
    In MarsLocation
    2,208Posts

    Re: [RELEASE] Hero Online (Hero Plus) Full Database + Server Emulator

    Quote Originally Posted by thellobo View Post
    is there a tutorial on how to put online? never saw the game wanted to learn how I leave online for testing
    Easy to put online and receive DMCA from Mgame. You better not want to deal with them. Safe ways are use VPN, such as hamachi network, zerotier.

  8. #38
    Registered thellobo is offline
    MemberRank
    Jan 2020 Join Date
    SP,BrazilLocation
    9Posts

    Re: [RELEASE] Hero Online (Hero Plus) Full Database + Server Emulator

    https://imgur.com/a/JKyvgR4

    Error comp

    EDT1:
    package config
    import (
    "log"
    "os"
    "strconv"
    )

    var Default = &config{
    Database: Database{
    Driver: "postgres",
    IP: os.Getenv("POSTGRES_HOST"),
    Port: getPort(),
    User: os.Getenv("POSTGRES_USER")
    Password: os.Getenv("POSTGRES_PASSWORD"),
    Name: os.Getenv("POSTGRES_DB"),
    ConnMaxIdle: 96,
    ConnMaxOpen: 144,
    ConnMaxLifetime: 10,
    Debug: false,
    SSLMode: "disable",
    },
    Server: Server{
    IP: "192.168.15.10", //os.Getenv("SERVER_IP),
    Port: 4510,
    },
    }

    func getPort() int {
    sPort := 4510 ("POSTGRES_PORT")
    port, err := strconv.ParseInt(sPort, 10, 32)
    if err != nil {
    log.Fatalln(err)
    }

    return int(port)
    }


    package main

    import (
    "fmt"
    "log"
    "net"
    "os"
    "sort"
    "strconv"
    "time"

    "github.com/robfig/cron"
    "github.com/syntaxgame/dragon-legend/ai"
    _ "github.com/syntaxgame/dragon-legend/ai"
    "github.com/syntaxgame/dragon-legend/api"
    "github.com/syntaxgame/dragon-legend/config"
    "github.com/syntaxgame/dragon-legend/database"
    _ "github.com/syntaxgame/dragon-legend/factory"
    "github.com/syntaxgame/dragon-legend/logging"
    "github.com/syntaxgame/dragon-legend/nats"
    "github.com/syntaxgame/dragon-legend/redis"
    "github.com/thoas/go-funk"
    )

    var (
    logger = logging.Logger
    )

    func initDatabase() {
    for {
    err := database.InitDB()
    if err == nil {
    log.Printf("Connected to database...")
    return
    }
    log.Printf("Database connection error: %+v, waiting 30 sec...", err)
    time.Sleep(time.Duration(30) * time.Second)
    }
    }

    func initRedis() {
    for {
    err := redis.InitRedis()
    if err != nil {
    log.Printf("Redis connection error: %+v, waiting 30 sec...", err)
    time.Sleep(time.Duration(30) * time.Second)
    continue
    }

    if redisHost := os.Getenv("REDIS_HOST"); redisHost != "" {
    log.Printf("Connected to redis...")
    go logger.StartLogging()
    }

    return
    }
    }

    func startServer() {
    cfg := config.Default
    port := cfg.Server.Port

    listen, err := net.Listen("tcp4", ":"+strconv.Itoa(port))
    defer listen.Close()
    if err != nil {
    log.Fatalf("Socket listen port %d failed,%s", port, err)
    os.Exit(1)
    }
    log.Printf("Begin listen port: %d", port)

    //connections = make(map[string]net.Conn)
    //remoteAddrs = make(map[string]int)

    for {
    conn, err := listen.Accept()
    if err != nil {
    log.Fatalln(err)
    continue
    }

    ws := database.Socket{Conn: conn}
    //ws.SetPingDuration(time.Second * 2)
    //ws.SetPingHandler(nil)
    go ws.Read()
    }
    }

    func cronHandler() {
    c := cron.New()
    c.AddFunc("0 0 0 * * *", func() {
    database.RefreshAIDs()
    })
    c.Start()
    }

    func main() {

    initRedis()
    initDatabase()
    cronHandler()

    ai.Init()
    go database.UnbanUsers()

    s := nats.RunServer(nil)
    defer s.Shutdown()

    c, err := nats.ConnectSelf(nil)
    defer c.Close()

    if err != nil {
    log.Fatalln(err)
    }

    go api.InitGRPC()

    startServer()
    }

    func resolveOverlappingItems() { //67-306
    ids := []string{}

    for _, userid := range ids {
    fmt.Println("user id:", userid)
    bankSlots, _ := database.FindBankSlotsByUserID(userid)
    freeSlots := make(map[int16]struct{})
    for _, s := range bankSlots {
    freeSlots[s.SlotID] = struct{}{}
    }

    findSlot := func() int16 {
    for i := int16(67); i <= 306; i++ {
    if _, ok := freeSlots[i]; !ok {
    return i
    }
    }
    return -1
    }

    for i := 0; i < len(bankSlots)-1; i++ {
    for j := i; true; j++ {
    if len(bankSlots) == j+1 || bankSlots[i].SlotID != bankSlots[j+1].SlotID {
    break
    }

    free := findSlot()
    if free == -1 {
    continue
    }

    fmt.Printf("%d => %d\n", bankSlots[j+1].SlotID, free)
    freeSlots[free] = struct{}{}
    bankSlots[j+1].SlotID = free
    bankSlots[j+1].Update()
    }
    }
    }
    }

    func createServerMobs(server int) {
    aiSet := funk.Filter(funk.Values(database.AIs), func(ai *database.AI) bool {
    return ai.Server == 1
    }).([]*database.AI)

    sort.Slice(aiSet, func(i, j int) bool {
    return aiSet[i].ID < aiSet[j].ID
    })

    for _, ai := range aiSet {
    newAI := *ai
    newAI.ID = 0
    newAI.Server = server
    err := newAI.Create()
    if err != nil {
    log.Print(err)
    }
    }
    }

    Last edited by thellobo; 26-06-20 at 09:40 PM.

  9. #39

    Re: [RELEASE] Hero Online (Hero Plus) Full Database + Server Emulator

    How do I get past lvl 100?

  10. #40
    Newbie Aeglon is offline
    MemberRank
    Jul 2020 Join Date
    2Posts

    Re: [RELEASE] Hero Online (Hero Plus) Full Database + Server Emulator

    Thanks for this.

    Every time i lauch the game, i get disconnected. Allways!
    https://i.imgur.com/wXlsAd0.jpg


    Any help?

  11. #41
    Registered Vulp is offline
    MemberRank
    May 2020 Join Date
    5Posts

    Re: [RELEASE] Hero Online (Hero Plus) Full Database + Server Emulator

    Quote Originally Posted by Aeglon View Post
    Thanks for this.

    Every time i lauch the game, i get disconnected. Allways!
    https://i.imgur.com/wXlsAd0.jpg


    Any help?
    server not running? make sure the emulator is running, communicating with the DB, and that you've changed your server.ini to the correct IP address (localhost or otherwise)

  12. #42
    Newbie Aeglon is offline
    MemberRank
    Jul 2020 Join Date
    2Posts

    Re: [RELEASE] Hero Online (Hero Plus) Full Database + Server Emulator

    All is working now. Thank you!One question. How to create socket +4 or +5... Same for precious pendent.
    Last edited by Aeglon; 20-07-20 at 04:02 PM.

  13. #43
    Newbie generation12 is offline
    MemberRank
    Jul 2020 Join Date
    2Posts

    Re: [RELEASE] Hero Online (Hero Plus) Full Database + Server Emulator

    Hi. After setting everything up, i get this error when i try to enter the world. https://imgur.com/a/eEgqHmn

  14. #44
    Alpha Member john007 is offline
    Alpha MaleRank
    Dec 2005 Join Date
    In MarsLocation
    2,208Posts

    Re: [RELEASE] Hero Online (Hero Plus) Full Database + Server Emulator

    Quote Originally Posted by generation12 View Post
    Hi. After setting everything up, i get this error when i try to enter the world. https://imgur.com/a/eEgqHmn
    Download this files TDH_Launcher
    Replace yours.

  15. #45
    Newbie generation12 is offline
    MemberRank
    Jul 2020 Join Date
    2Posts

    Re: [RELEASE] Hero Online (Hero Plus) Full Database + Server Emulator

    Quote Originally Posted by john007 View Post
    Download this files TDH_Launcher
    Replace yours.
    Now its working thanks. Now what are the codes for spaming items. And does anyone knows how to add more items to the ncash shop? I see there some items missing, like the one to make HTs to master, then elite and then legendary.
    Last edited by generation12; 26-07-20 at 06:08 PM.



Page 3 of 5 FirstFirst 12345 LastLast

Advertisement