Author Topic: How can I test custom version of war2mod?  (Read 1405 times)

Offline Qver

  • Peon
  • **
  • Posts: 3
    • View Profile
How can I test custom version of war2mod?
« on: March 26, 2025, 02:35:17 AM »
Hello everybody!

I have discovered sources of war2mod in mistral's repository here: https://github.com/Mistral-war2ru/War2Mod-Server and found that some functions I can try to change to work faster (all functions doing auras just iterating all units. Instead we can store for each cell which unit is in it and instead iterating all units just check nearby cells. So if auras have range 5 we can check only 11 * 11 = 121 cells, that will work faster if we have at least 122 units. And the same we could do with autoheal)
(It's all started when I making some map with triggers found that it was too laggy and unplayable when there are many units with auras so I wanted to know why, and when I saw the code as competive programmer it blows me up)
Also I am thinking on doing some AI improvments.

So this is my question, how can I join the server with my custom build of war2mod (I understand that I will drop in all games this way) or any other way I can play games and check it working? And if it will work faster to change the original version?

Offline Mistral

  • Administrator
  • Axe Thrower
  • *****
  • Posts: 440
    • View Profile
Re: How can I test custom version of war2mod?
« Reply #1 on: March 26, 2025, 09:00:00 AM »
oh wow hi man
i happy to see that at last someone was actually interested in sorce codes and programming
im the creator of this war2mod
for testing purposes i mostly use my local server on my pc before sending changes to main serv
i can share you my local serv build if you want
maybe we can try talk in discord?

i will be happy if there will be someone who can also do more new changes and fixes for war2mod
if you make cool changes i can add them to main serv no problem

Offline dannyldd

  • Axe Thrower
  • ****
  • Posts: 266
    • View Profile
Re: How can I test custom version of war2mod?
« Reply #2 on: March 26, 2025, 09:30:08 AM »
Hello everybody!

I have discovered sources of war2mod in mistral's repository here: https://github.com/Mistral-war2ru/War2Mod-Server and found that some functions I can try to change to work faster (all functions doing auras just iterating all units. Instead we can store for each cell which unit is in it and instead iterating all units just check nearby cells. So if auras have range 5 we can check only 11 * 11 = 121 cells, that will work faster if we have at least 122 units. And the same we could do with autoheal)
(It's all started when I making some map with triggers found that it was too laggy and unplayable when there are many units with auras so I wanted to know why, and when I saw the code as competive programmer it blows me up)
Also I am thinking on doing some AI improvments.

So this is my question, how can I join the server with my custom build of war2mod (I understand that I will drop in all games this way) or any other way I can play games and check it working? And if it will work faster to change the original version?

very nice !! your contribution is well appreciated !! Anything to improve War2 AI is very nice !

Offline Qver

  • Peon
  • **
  • Posts: 3
    • View Profile
Re: How can I test custom version of war2mod?
« Reply #3 on: March 27, 2025, 03:38:51 PM »
oh wow hi man
i happy to see that at last someone was actually interested in sorce codes and programming
im the creator of this war2mod
for testing purposes i mostly use my local server on my pc before sending changes to main serv
i can share you my local serv build if you want
maybe we can try talk in discord?

i will be happy if there will be someone who can also do more new changes and fixes for war2mod
if you make cool changes i can add them to main serv no problem
oh wow hi man
i happy to see that at last someone was actually interested in sorce codes and programming
im the creator of this war2mod
for testing purposes i mostly use my local server on my pc before sending changes to main serv
i can share you my local serv build if you want
maybe we can try talk in discord?

i will be happy if there will be someone who can also do more new changes and fixes for war2mod
if you make cool changes i can add them to main serv no problem

I would very appreciate if you share your local test server.
I found some on ftp.war2.ru but it dont support war2mod and overwritting gateways(

My nickname on discord is Qver too (qver_61539).

P.S. Why all my messages should be approved by moderator? Because I havent necesary amount?

Offline Mistral

  • Administrator
  • Axe Thrower
  • *****
  • Posts: 440
    • View Profile
Re: How can I test custom version of war2mod?
« Reply #4 on: March 27, 2025, 04:13:19 PM »
nice, i will write you in ds

so about approve messages
you cannot imagine how many bots spam some ads as posts here
so we have this protection thing long ago
until user have 2 or 3 msg (i not remember how much) they need approve
otherwise forum will be full of posts like "hey guys come onto xyz size we have free c*** p*rn" and etc etc
those bots mostly do not bother to try pretend to be like real user and write some normal msg (i almost sure that 99% of them do not even know what is this forum about, they just automatic find some forums site and start spam), so 3 approved msg mosly enough, but ofc if user start some spam shit after he was approved we will ban him (i basically never saw this happens though)