Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.60 KB | None | 0 0
  1. [19:33] <+zwzsg> Do you know what's the reason behind relayhost transforming random/fixed start pos into "chosen out of game"?
  2. [19:34] <+MelBot> <BrainDamage> yes, relayhost server assumes map & mod is not installed
  3. [19:34] <+MelBot> <BrainDamage> so fixed & random start pos infos are not available
  4. [19:34] <+zwzsg> For the client, or for the host?
  5. [19:34] <+MelBot> <BrainDamage> for the host
  6. [19:35] <+MelBot> <BrainDamage> instead, the client knows them, since it needs the map to play anyway, so when generating script.txt it adds them using chose before game
  7. [19:35] <+zwzsg> Hmm.
  8. [19:35] <+zwzsg> But how does the host knows them then?
  9. [19:35] <+zwzsg> I mean, the host does pick some start pos that correspond to the one in the map smd
  10. [19:36] <+MelBot> <BrainDamage> as i said, the person who generates the script, has the map, and puts them using chose before game
  11. [19:36] <+zwzsg> The person who generate the script is not the relayhost?
  12. [19:36] <+MelBot> <BrainDamage> correct
  13. [19:37] <+zwzsg> Anyway, I don't really need to understand the reason, just that there is one.
  14. [19:37] <+zwzsg> It cause problem with my hex farm map.
  15. [19:38] <+zwzsg> Because the map is randomised, so are the possible start pos.
  16. [19:38] <+MelBot> <BrainDamage> ah
  17. [19:38] <+zwzsg> I have lua hackery to override the value returned by GetTeamStartPos
  18. [19:38] <+zwzsg> That lua hackery only trigger with fixed or random startpos.
  19. [19:38] <+MelBot> <BrainDamage> mmm
  20. [19:38] <+MelBot> <BrainDamage> if you want, i can add you an additional tag in script.txt
  21. [19:39] <+zwzsg> Maybe I could detect the startscript is written by relayhost?
  22. [19:39] <+MelBot> <BrainDamage> to indicate you the host chosed in reality "random"
  23. [19:39] <+zwzsg> Yes.
  24. [19:39] <+zwzsg> Well, it's not very important, as I'm unlikely to make a new release of that map any time soon.
  25. [19:39] <+MelBot> <BrainDamage> well, could be used by anyone else anyway
  26. [19:39] <+zwzsg> Just wanted to be sure I understood well the problem so as to start pondering solutions.
  27. [19:40] <+MelBot> <BrainDamage> RelayHostStartPosType
  28. [19:40] <+MelBot> <BrainDamage> and it'll contain the "real" pos type
  29. [19:40] <+zwzsg> Sure
  30. [19:41] <+zwzsg> Just don't rush to implement, keep it low priority, may take me 6 month before I start making a new random map.
  31. [19:42] <+MelBot> <BrainDamage> it's 1 line of code
  32. [19:42] <+MelBot> <BrainDamage> and already done
  33. [19:42] <+MelBot> <BrainDamage> will be included in next release of sl
  34. [19:43] <+MelBot> <BrainDamage> which might take 6 months for people to adopt :p
  35. [19:43] <+zwzsg> Thanks for the support!
  36. [19:49] <@Phantasm> Only half a year! ;P
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement