Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [19:33] <+zwzsg> Do you know what's the reason behind relayhost transforming random/fixed start pos into "chosen out of game"?
- [19:34] <+MelBot> <BrainDamage> yes, relayhost server assumes map & mod is not installed
- [19:34] <+MelBot> <BrainDamage> so fixed & random start pos infos are not available
- [19:34] <+zwzsg> For the client, or for the host?
- [19:34] <+MelBot> <BrainDamage> for the host
- [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
- [19:35] <+zwzsg> Hmm.
- [19:35] <+zwzsg> But how does the host knows them then?
- [19:35] <+zwzsg> I mean, the host does pick some start pos that correspond to the one in the map smd
- [19:36] <+MelBot> <BrainDamage> as i said, the person who generates the script, has the map, and puts them using chose before game
- [19:36] <+zwzsg> The person who generate the script is not the relayhost?
- [19:36] <+MelBot> <BrainDamage> correct
- [19:37] <+zwzsg> Anyway, I don't really need to understand the reason, just that there is one.
- [19:37] <+zwzsg> It cause problem with my hex farm map.
- [19:38] <+zwzsg> Because the map is randomised, so are the possible start pos.
- [19:38] <+MelBot> <BrainDamage> ah
- [19:38] <+zwzsg> I have lua hackery to override the value returned by GetTeamStartPos
- [19:38] <+zwzsg> That lua hackery only trigger with fixed or random startpos.
- [19:38] <+MelBot> <BrainDamage> mmm
- [19:38] <+MelBot> <BrainDamage> if you want, i can add you an additional tag in script.txt
- [19:39] <+zwzsg> Maybe I could detect the startscript is written by relayhost?
- [19:39] <+MelBot> <BrainDamage> to indicate you the host chosed in reality "random"
- [19:39] <+zwzsg> Yes.
- [19:39] <+zwzsg> Well, it's not very important, as I'm unlikely to make a new release of that map any time soon.
- [19:39] <+MelBot> <BrainDamage> well, could be used by anyone else anyway
- [19:39] <+zwzsg> Just wanted to be sure I understood well the problem so as to start pondering solutions.
- [19:40] <+MelBot> <BrainDamage> RelayHostStartPosType
- [19:40] <+MelBot> <BrainDamage> and it'll contain the "real" pos type
- [19:40] <+zwzsg> Sure
- [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.
- [19:42] <+MelBot> <BrainDamage> it's 1 line of code
- [19:42] <+MelBot> <BrainDamage> and already done
- [19:42] <+MelBot> <BrainDamage> will be included in next release of sl
- [19:43] <+MelBot> <BrainDamage> which might take 6 months for people to adopt :p
- [19:43] <+zwzsg> Thanks for the support!
- [19:49] <@Phantasm> Only half a year! ;P
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement