Jump to content

Liven_28

Members
  • Content Count

    12
  • Joined

  • Last visited

Community Reputation

0 Neutral

1 Follower

About Liven_28

  • Rank
    Scavenger

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Liven_28

    Input detection

    Nobody to answer this? No doc? No tuto? No sample? for this simple fonction I looked at RPC and mods like CoT or Trader but nothing I tried works It begin to be really boring modding on Dayz. I feel wasting my time.
  2. Liven_28

    Problem with ChatPlayer()

    Thank you, very useful piece of code, I'm now looking for such same thing for detecting player inputs Ok, that's make me progress in understanding those things. I already had a look in workshop mods code, but I can't differentiate what concern the server, what concerne the client, how they conmunicate with each other (tryed lot of things without succed). The script I am working on (the one sending message to players, witch run fine now) is in a subfolder of mpmission stuff and link to the init.c so it is a server modification (not realy a mod as it is not sign and packed), but now (if I understand what you say) I need to make a client side mod to detect players input. Can you give me some details on this point?
  3. Liven_28

    Problem with ChatPlayer()

    Thank you for the answers, I'll look at it seriously tomorrow. Be sure I'll be back ,:-)
  4. Liven_28

    Problem with ChatPlayer()

    For me RPC is a great mystery, I heard here and here that it is verry useful (essential), but I can't figure out how it works. For exemple, how to fill player and playerIdentity, what to do with the array<Man>, how to be sure RPC is activated, does it is link to the RPC framework mod or it is internal dayz function (I heard I have to I have to declare it on config.ccp ...). I searched a lot documention, help, tuto... but find nothing that helped me. All I need is a basic, simple, fonctionnal, complete exemple for sending message ingame (mostly to check variables values). I heard getting player inputs (detect when player hit a key) require RPC too, but I don't find how to do. Very sorry being so noob, I have a solide experience on Unity (for single player games) but I can't figure out how Enfusion works. I never done modding on arma so I don't have the workflow even for these "simple" things (witch make me lost a looooooooooot of time). Edit : Just finish writiing this and I find a solution that seem to work : Param1<string> Msgparam; PlayerBase player; PlayerIdentity playerIdentity; array<Man> players = new array<Man>; GetGame().GetPlayers( players ); for ( int i = 0; i < players.Count(); ++i ) { player = PlayerBase.Cast(players.Get(i)); playerIdentity = player.GetIdentity(); Msgparam = new Param1<string>( "Hello world!"); GetGame().RPCSingleParam(player, ERPCs.RPC_USER_ACTION_MESSAGE, Msgparam, true, playerIdentity); } Is it a good way for doing it. And I always look a way to detect player inputs...
  5. Liven_28

    Problem with ChatPlayer()

    I am running DayZ on a server on my own machine (server and client on the same computer), so I tried GetGame().GetPlayer().MessageImportant("YOU ARE A MEME"); => Undefined function 'MessageImportant' GetGame().GetPlayers().MessageImportant("YOU ARE A MEME"); => Not enought parameters in function 'GetPlayers' I Am really stuck without that because I don't know how to see variable values évolution for debugging and playtests (I'm blind !)
  6. Liven_28

    Problem with ChatPlayer()

    Since the yesterday update I have a problem : the instruction GetGame().ChatPlayer(1 ,"Hello"); do not compile anymore (error message "incompatible parameter '1'") And if I try GetGame().ChatPlayer("Hello"); I have no error message but no message displaying in game when it worked well before the update
  7. Liven_28

    Input detection

    pls is someone can help me, I really need this to save hours (days) of work
  8. Liven_28

    Input detection

    Hello I try to detect inputs of players I was thinking something like than would works, but it don't 😞 modded class MissionGameplay { override void OnKeyRelease(int key) { super.OnKeyRelease(key); if ( key == KeyCode.KC_B ) { GetGame().ChatPlayer(1,"hello"); } } } Is someone can help me?
  9. Liven_28

    xml/txt/json variables to .cpp

    up, pls
  10. Liven_28

    xml/txt/json variables to .cpp

    Do you know where can I find doc or examples on this subject. The only things I found concerne .c files not .cpp
  11. Liven_28

    xml/txt/json variables to .cpp

    Is someone have an idea on that?
  12. Liven_28

    xml/txt/json variables to .cpp

    Can I acces in a config.cpp file to variable stored in an xml / txt / json file. I'm making a mode to tweak z health and I would like to make it easy for server admin to tweak the values without having to unpack the .pbo files.
×