Jump to content


Photo

Big Brains, need yr help with some scar condition mod(allies mod)

scar soulstorm allies mod

7 replies to this topic

#1 Professor Zog

Professor Zog
  • New Members
  • 3 posts

Posted 26 August 2023 - 10:04 AM

Good day, smart fellas, I want to create an ally mod, so y can share control of yr units with allies (like in wc3 or sc2).

For now I only have  sandbox mod from ultim apoc, it give y one button, y click on it and change between all current  AI players.
When test in multiplayer, with 2 human, all bots are halved to one or another human, and humans cant controll each other ( I think its because player ID calcute for every human separatly, and must be calculated only on host player)

 

Is there a way to modified this mod, to create another button, which can switch yr decision to give control of yr units or not;

and current button to switch control to all allies that give that permission.

 

Or maybe any tips how to give  hotkeys to this scar buttons or change their position, size on interface?

 

 

 

best regards
Pr.Zog

Attached Files



#2 Gambit

Gambit

    title available

  • Members
  • 6,720 posts
  • Location:Athens, Greece

Posted 26 August 2023 - 05:16 PM

Hello brother.

First, let me suggest an updated version of Sandbox, so that you can experiment further.

See, in Unification I coded an advanced version of that wincon, called Change Players. It follows a different structural approach and it is based on the original Change Players wincon.

Better look into that (it has two modes, you will see).

 

 

Now, on to your question:

Good day, smart fellas, I want to create an ally mod, so y can share control of yr units with allies (like in wc3 or sc2).

Regrettably, I do not deem this possible.

At least not directly.

The reason is simple: Each squad can "belong" to only one player.

Now if you want to assign control of a specific squad (or a complete race), to more than one player "simultaneously"...

 

There is a workaround (more of an idea), but it is a bit challenging, code-wise. And I am not sure it WILL work eventually...

So, you can create a function that will check which squad(s) are currently selected, and if those belong to the "group" of players the player that selected them belongs to, then ""temporarily" assign those squads to the "ally" player for control - and dismiss them (return them to their original player) once "released".

But this implementation will soon become messy...

There are many thing that can and will possibly go sideways.

 

I love SCaR challenges, but this one is limited by engine design I am afraid.


Edited by Gambit, 26 August 2023 - 05:18 PM.

-In search of Papasmurf...

#3 Professor Zog

Professor Zog
  • New Members
  • 3 posts

Posted 27 August 2023 - 12:36 PM

Hello brother.

First, let me suggest an updated version of Sandbox, so that you can experiment further.

See, in Unification I coded an advanced version of that wincon, called Change Players. It follows a different structural approach and it is based on the original Change Players wincon.

Better look into that (it has two modes, you will see).

 

 

Now, on to your question:

Good day, smart fellas, I want to create an ally mod, so y can share control of yr units with allies (like in wc3 or sc2).

Regrettably, I do not deem this possible.

At least not directly.

The reason is simple: Each squad can "belong" to only one player.

Now if you want to assign control of a specific squad (or a complete race), to more than one player "simultaneously"...

 

There is a workaround (more of an idea), but it is a bit challenging, code-wise. And I am not sure it WILL work eventually...

So, you can create a function that will check which squad(s) are currently selected, and if those belong to the "group" of players the player that selected them belongs to, then ""temporarily" assign those squads to the "ally" player for control - and dismiss them (return them to their original player) once "released".

But this implementation will soon become messy...

There are many thing that can and will possibly go sideways.

 

I love SCaR challenges, but this one is limited by engine design I am afraid.

 
Thx for reply. I dont know game engine well, so rely on yr knowledges here.

But what I definitely know, that there must be a  way that 2 human(or more) can control one race simultaneously, cause in online I rarerly see some hacks/cheats/exploits, so enemy can controll yr troops, delete them and etc (or maybe observer can do it)

Must be some breach in game engine, so it allow y switch to other player, without remove this player control



#4 Gambit

Gambit

    title available

  • Members
  • 6,720 posts
  • Location:Athens, Greece

Posted 30 August 2023 - 07:48 AM

Just to say that I liked your idea, and tried to implement it in a wincon.

So far I have been unable to do so.

 

See, each squad has ONE player owner. And in order to control the squad, you must own it.

I tried to experiment with swapping ownership but it ended up badly. In MP games, my idea resultied in immediate de-syncing (of course).

 

...For those interested, I can share some more technical insight.

The only thing that may work (as far as my tests have proved), is to temporarily control some of the AI troops in Single Player games- but for only that I am reluctant to proceed in completing the wincon.

 

 

Botomline: Unless we find a function that "share" squad ownership among players... I deem the feat impossible.


Edited by Gambit, 30 August 2023 - 07:50 AM.

-In search of Papasmurf...

#5 Professor Zog

Professor Zog
  • New Members
  • 3 posts

Posted 30 August 2023 - 12:28 PM

Just to say that I liked your idea, and tried to implement it in a wincon.

So far I have been unable to do so.

 

See, each squad has ONE player owner. And in order to control the squad, you must own it.

I tried to experiment with swapping ownership but it ended up badly. In MP games, my idea resultied in immediate de-syncing (of course).

 

...For those interested, I can share some more technical insight.

The only thing that may work (as far as my tests have proved), is to temporarily control some of the AI troops in Single Player games- but for only that I am reluctant to proceed in completing the wincon.

 

 

Botomline: Unless we find a function that "share" squad ownership among players... I deem the feat impossible.

Thanks for yr research in that question!

Y can contact me via discord if y need some help with testing, fast responses or other stuff  

ProfWanksta#6749

(or left some yr contacts here, like steam or smth)
 

So only possible way is to quickly swap units owners, like Deceiver abillity. Not so bad for begining.

 



#6 Gambit

Gambit

    title available

  • Members
  • 6,720 posts
  • Location:Athens, Greece

Posted 30 August 2023 - 05:06 PM

So only possible way is to quickly swap units owners, like Deceiver ability. Not so bad for beginning.

Exactly, but the method which we would use is via SCaR, of course.

I was experimenting with certain functions which deal with which squads a player has currently selected, but since these are "localized" (works for each player separately), the implementation results in immediate de-syncing...

Dammit.

And it was such a good idea.


-In search of Papasmurf...

#7 JoyceHarvey

JoyceHarvey
  • New Members
  • 4 posts

Posted 08 September 2023 - 06:51 AM

Hello brother.

First, let me suggest an updated version of Sandbox, so that you can experiment further.

See, in Unification I coded an advanced version of that wincon, called Change Players. It follows a different structural approach and it is based on the original Change Players wincon.

Better look into that (it has two modes, you will see).

 

 

Now, on to your question:

Good day, smart fellas, I want to create an ally mod, so y can share control of yr units with allies (like in wc3 or sc2).

Regrettably, I do not deem this possible.

At least not directly.

The reason is simple: Each squad can "belong" to only one player.

Now if you want to assign control of a specific squad (or a complete race), to more than one player "simultaneously"...

 

There is a workaround (more of an idea), but it is a bit challenging, code-wise. And I am not sure it WILL work eventually...

So, you can create a function that will check which squad(s) are currently selected, and if those belong to the "group" of players the player that selected them belongs to, then ""temporarily" assign those squads to the "ally" player for control - and dismiss them (return them to their original player) once "released".

But this implementation will soon become messy...

There are many thing that can and will possibly go sideways.

 

I love SCaR challenges, but this one is limited by engine design I am afraid.


 

Thanks, I found it useful for me.


Edited by JoyceHarvey, 06 November 2023 - 08:11 AM.


#8 Gambit

Gambit

    title available

  • Members
  • 6,720 posts
  • Location:Athens, Greece

Posted 08 September 2023 - 07:29 AM

Just to say brother JoyceHarvey, that I tried to do it.

But there is not function that can help achieving it, even remotely.

My verdict: Playing one race with a friend, or sharing units is impossible. Each entity/squad belongs to ONLY one player.

Changing ownership is tricky, and can ONLY work with an AI ally (only in Single Player games, with you, somewhat "helping" the AI squads in combat). But it is too limiting, doesn't deserve the fuss.

 

Dammit...

...It was a nice idea!


-In search of Papasmurf...



Reply to this topic



  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users