How to integrate Steam SDK in VN Maker?

Discussion in 'Visual Novel Maker Support' started by Koko413, Nov 23, 2017.

  1. Koko413

    Koko413 Caster Member

    Messages:
    5
    Likes Received:
    0
    Location:
    China
    First Language:
    Chinese
    Primarily Uses:
    Other
    I'm thinking of using VN Maker to make my next visual novel game that will be released on Steam.

    Could someone give me some tips about how to integrate Steam SDK in VN Maker? I have my own AppID.

    Thanks!
     
    #1
  2. Archeia

    Archeia Level 99 Demi-fiend Staff Member Developer

    Messages:
    14,551
    Likes Received:
    14,232
    Location:
    Game Dev Salt Mines
    First Language:
    Filipino
    Primarily Uses:
    VNM
  3. Warpmind

    Warpmind Twisted Genius Veteran

    Messages:
    914
    Likes Received:
    564
    Location:
    Outside Bergen, Norway
    First Language:
    Norwegian
    Ooooh, this should work with MV, too, shouldn't it?
     
    #3
  4. Gamefall Team

    Gamefall Team Nebula Games Leader Veteran

    Messages:
    337
    Likes Received:
    420
    Location:
    Italy
    First Language:
    Italian
    Primarily Uses:
    RMMV
    #4
  5. Koko413

    Koko413 Caster Member

    Messages:
    5
    Likes Received:
    0
    Location:
    China
    First Language:
    Chinese
    Primarily Uses:
    Other
    I hope NV Maker can be built-in support for the Steam SDK.

    The current version has a lot of bugs, support for the Steam is not friendly enough. I hope at least to have the support for Steam 's overlay.

    I am very optimistic about the NV Maker, but it is not worth its price now. Does the official plan to support the Steam SDK? I've recommended NV Maker to some visual novel authors who have no programming foundation.
     
    #5
  6. Archeia

    Archeia Level 99 Demi-fiend Staff Member Developer

    Messages:
    14,551
    Likes Received:
    14,232
    Location:
    Game Dev Salt Mines
    First Language:
    Filipino
    Primarily Uses:
    VNM
    Steam SDK is its own thing and has its own contract and license. I highly doubt we can support officially as built-in (if you saw another game engine that does it by default, please point it to me since I'm curious how they handled licensing).
     
    #6
  7. Koko413

    Koko413 Caster Member

    Messages:
    5
    Likes Received:
    0
    Location:
    China
    First Language:
    Chinese
    Primarily Uses:
    Other
    UE4, Gamemaker Studio 2 .

    The case of Gamemaker Studio 2 is more suitable as a reference object.
    http://docs2.yoyogames.com/

    It only needs the user to point to the folder where the Steam SDK is located to achieve the Shift + Tab to call Steam Overlay.
    Just like this:
    [​IMG]

    I tried with greenworks and had a problem.

    “require is not a function.”

    Does VN Maker has an integration environment for node.js? I dont know much about node.js.
     
    Last edited by a moderator: Nov 24, 2017
    #7
  8. Kentou

    Kentou Admin Veteran

    Messages:
    175
    Likes Received:
    43
    Hi Koko413, how did you try it?
     
    #8
  9. Koko413

    Koko413 Caster Member

    Messages:
    5
    Likes Received:
    0
    Location:
    China
    First Language:
    Chinese
    Primarily Uses:
    Other
    Hi Kentou,

    "If you want to add an external library, just navigate to your project folder and create a new folder "lib" there and put all your external libraries there. All external libraries are automatically included before the actual game scripts. "

    So I navigated to my project folder and released the greenworks' files in it.

    Then, hmmmm let's me show you what I tried:
    [​IMG]
    Created a new folder“lib”, released what we need.
    [​IMG]
    At the end, I opened the Game.html, and added scripts that from greenworks' Quick Guide like this:
    [​IMG]
    greenworks' Quick Guide :
    https://github.com/greenheartgames/greenworks/blob/master/docs/quick-start-nwjs.md

    I opened my project by VN Maker and got this:
    [​IMG]

    I found I didn't install node.js and install it then tried again, same result..

    Does VN Maker has an integration environment for node.js? I think it does not matter whether I have node.js environment local.

    Sorry for Non-English interface and my bad English, I hope I made it clear :)
     
    Last edited: Nov 24, 2017
    #9
  10. Kentou

    Kentou Admin Veteran

    Messages:
    175
    Likes Received:
    43
    VN Maker as well as the Games both are based on NW.js which is based on Node.js and Chromium.

    var greenworks = (require||requireNode)("./greenworks")

    I didn't test this out yet, but it should work this way. If it doesn't work for you I will give you more help :)
     
    #10
  11. Koko413

    Koko413 Caster Member

    Messages:
    5
    Likes Received:
    0
    Location:
    China
    First Language:
    Chinese
    Primarily Uses:
    Other
    Still not working...
    [​IMG] [​IMG]
    [​IMG]
     
    #11
  12. Kino

    Kino EIS Game Dev Veteran

    Messages:
    515
    Likes Received:
    672
    Location:
    United States
    First Language:
    English
    Primarily Uses:
    RMMV
    It's not going to work in the HTML it's only going to work directly in the game editor to use require in scripts / extensions.

    This is because html is generally in the browser.
     
    #12
  13. Dr.Yami

    Dr.Yami 。◕‿◕。 Developer

    Messages:
    994
    Likes Received:
    736
    Location:
    Finland
    First Language:
    Vietnamese
    Primarily Uses:
    Other
    Can you try using require in a game script instead of Game.html? When saving the project, the engine will override the HTML file.
    External libraries can be loaded follows the document in Help > Script & Plugin Reference > Script Documentation > External Libraries
     
    #13
  14. RagDoll8000

    RagDoll8000 Warper Member

    Messages:
    4
    Likes Received:
    0
    First Language:
    Mandarin
    Primarily Uses:
    VNM
  15. Archeia

    Archeia Level 99 Demi-fiend Staff Member Developer

    Messages:
    14,551
    Likes Received:
    14,232
    Location:
    Game Dev Salt Mines
    First Language:
    Filipino
    Primarily Uses:
    VNM
    #15
  16. Tuomo L

    Tuomo L Oldbie Veteran

    Messages:
    2,288
    Likes Received:
    1,256
    Location:
    Finland!
    First Language:
    Finnish
    Primarily Uses:
    RMMV
    What is NW JS version of VN Maker so I know which version of Greenworks I'll use?
     
    #16
  17. Tuomo L

    Tuomo L Oldbie Veteran

    Messages:
    2,288
    Likes Received:
    1,256
    Location:
    Finland!
    First Language:
    Finnish
    Primarily Uses:
    RMMV
    I can't get my Test achievement to unlock.

    I have

    var greenworks = (require||requireNode)("./greenworks")

    In scripts.

    And use this script command in game

    greenworks.activateAchievement(Test)

    But it doesn't unlock. Should I add Greenworks.js contents into Scripts too?
     
    #17
  18. Kentou

    Kentou Admin Veteran

    Messages:
    175
    Likes Received:
    43
    Hi, if you can execute that script without any error message on Console it means that everything is there. I think you have to initialize greenworks first before you can call any other Steam API functions. I think there is an init function or something, you can take a look at the greenworks documentation.
     
    #18
  19. Tuomo L

    Tuomo L Oldbie Veteran

    Messages:
    2,288
    Likes Received:
    1,256
    Location:
    Finland!
    First Language:
    Finnish
    Primarily Uses:
    RMMV
    It claims to me that greenworks node isn't in the lib folder even though I do have it in both data lib and also on root game folder in lib.
     
    #19

Share This Page