Jump to content

CnCNet Forums

Search In
  • More options...
Find results that contain...
Find results in...
  • 1
Sign in to follow this  
FELlTH

How can I use ForcedOptions on my Custom Map?

Question

9 answers to this question

Recommended Posts

  • 0
5 hours ago, FELlTH said:

if any Waypoint#= does exist in .map file under [Basic] section, Client will use Waypoint<0-7>= instead of <0-7>= under [Waypoints] section

I'll consider it. Although I think a key like HiddenStartingLocations= might work better.

5 hours ago, FELlTH said:

edit: I think you should use new [Client] section for your Client stuff instead of [Basic]. is this possible?

It'd be possible, but I don't want to break maps that already make use of the client's features. There's not many of those, but still.

On 23.11.2017 at 5:56 AM, FELlTH said:

Did you have any Documentation for this yet?

Because the client was mostly developed based on the different projects' (DTA, TI, MO, YR) needs and I've mostly been the only developer, there is no real documentation. Instead, you can look at the different projects that already utilize the client, or its source code for how it works.

  • Like 1

Share this post


Link to post
Share on other sites
  • 0

I created .ini file the same name as .map and put this into the ini

[ForcedOptions]
chkSuperweapons=true

the Superweapons setting still uncheckable in the lobby

also use this on .map itself and still doesn't worked.

[Basic]
ForcedOptions=superweaponsForcedOptions

 

More Question.

How to add high res preview on my Custom map?

Edited by FELlTH

Share this post


Link to post
Share on other sites
  • 0

You can't use a separate INI with custom maps. Instead, create a [ForcedOptions] section to the map file itself, and there set chkSuperweapons=true.

There is some way to replace FinalAlert's generated preview image with a higher-quality image, but I can't remember it.

Share this post


Link to post
Share on other sites
  • 0
1 hour ago, Rampastring said:

Instead, create a [ForcedOptions] section to the map file itself, and there set chkSuperweapons=true.

 

doesn't worked. t^t

edit: I'm on Mental Omega btw.

more custom maps question.

How can I hide a Starting location on the classic preview map? (well, I can't use "high res preview map with Waypoint0=" to solve this.)

Edited by FELlTH

Share this post


Link to post
Share on other sites
  • 0

The client version needs to be at least 2.0.9.1 for it to work, and MO's client is older than that. You'll need to wait for the MO team to publish an update.

Quote

How can I hide a Starting location on the classic preview map? (well, I can't use "high res preview map with Waypoint0=" to solve this.)

You cannot. Why do you want to hide it?

  • Like 1

Share this post


Link to post
Share on other sites
  • 0
11 hours ago, Rampastring said:

You cannot. Why do you want to hide it?

 

I don't want players to choose a point on the preview that I want to hide. that point is only for AI that spawning by "EnemyHouse0=".

Edited by FELlTH

Share this post


Link to post
Share on other sites
  • 0

It's easiest to use a waypoint index higher than 7 for the EnemyHouse spawn location, the client allows it, and I think the game should allow it too (IIRC it works at least in Tiberian Sun).

So for example place waypoint 10 in the map editor and specify that for the EnemyHouse0 starting location. Use waypoints 0-7 for human players only.

  • Confused 1

Share this post


Link to post
Share on other sites
  • 0
On 21/11/2560 at 7:42 AM, Rampastring said:

It's easiest to use a waypoint index higher than 7 for the EnemyHouse spawn location, the client allows it, and I think the game should allow it too (IIRC it works at least in Tiberian Sun).

So for example place waypoint 10 in the map editor and specify that for the EnemyHouse0 starting location. Use waypoints 0-7 for human players only.

 

didn't work. I changed waypoint 5(6),6(7),7(8) to 16,17,18  then I changed spawn location of EnemyHouse0-2 to match with my new waypoint and yeah starting point 6,7,8 on the preview now gone. I choose to spawn at 1, Ally AI at 2 and then I tried to start the game. enemy AI that should be on waypoint 16,17,18. instead, they spawning at waypoint 2(3),3(4),4(5).
When I try again with one more Ally AI. The game won't starting load. (sound like, there is no location left for an enemy AI to take it)

Do I understand this syntax correct?

EnemyHouse0=<country>,<color>,<spawnAtWaypoint>

Did you have any Documentation for this yet?

Edited by FELlTH

Share this post


Link to post
Share on other sites
  • 0

@Rampastring you should do this.

if any Waypoint#= does exist in .map file under [Basic] section, Client will use Waypoint<0-7>= instead of <0-7>= under [Waypoints] section

edit: I think you should use new [Client] section for your Client stuff instead of [Basic]. is this possible?

Edited by FELlTH

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Similar Content

    • By FunkyFr3sh
      Running both CnCNet servers using systemd (Linux x64)
       
      wget downloads.cncnet.org/v3tunnel.sh wget downloads.cncnet.org/v2tunnel.sh sh v3tunnel.sh "Unnamed Server" sh v2tunnel.sh "Unnamed Server" If you're unsure what linux distro to choose, just take the latest version of Ubuntu
       
       
      Using the above method you can run both CnCNet servers as a service and they will continue to run even after the server restarted.
       
      Alternatively you can also run the servers individually (see below):
       
       
       
       
       
      Command & Conquer 1, Red Alert, Tiberian Sun, Dune 2000 (+ Mods)
       
       
      Linux x64 example:
      wget -c https://downloads.cncnet.org/cncnet-server-core.tgz -O - | tar -xz nohup ./cncnet-server-core --name "My cool server" --maxclients 200 --port 50001 > cncnet-server-core.log 2>&1 & Linux ARM
       
       
      Windows:
      On XP, Vista and 7 make sure .NET 4.0 is installed: https://www.microsoft.com/en-US/download/details.aspx?id=17113
      Download the server and start it: http://downloads.cncnet.org/cncnet-server-gui.exe
       
       
      Note: Servers are chosen automatically by CnCNet and are only used in case 2 players fail to establish a Peer-To-Peer connection.
       
       
       
       
       
      Yuris Revenge (+ Mods)
       
       
      Linux (Ubuntu) example:
      sudo apt-get install default-jre wget http://downloads.cncnet.org/cncnet-tunnel.exe nohup java -jar cncnet-tunnel.exe -name "My cool server" -maxclients 200 -port 50000 -headless > cncnet-tunnel.log &  
       
      Windows:
      Download the server and start it: http://downloads.cncnet.org/cncnet-tunnel.exe
       
       
      Note:  To use a specific server you'll have to select it via the advanced settings while hosting a game room.
       
       
       
       
      Linux autostart
      crontab -e @reboot nohup ~/cncnet-server-core --name "My cool server" --maxclients 200 --port 50001 > ~/cncnet-server-core.log &  
       
       
      The servers will not show up instantly on the website, it can take up to 4 hours
       
       
       
    • By bruceify
      I installed cncnet today and its working fine, but now I can't access Mental Omega's Singleplayer. When I click on MO's client it just launches CNCnet. How do I fix this?
    • By AC_0
      As the title says, My IP has been listed at DroneBL, I viewed the listing, and the section "Why?" says it's because my IP address is an 'IRC Spam Drone', Nothing suspicious happened to my IP since the last year, i played Mental Omega online today and when trying to connect, it worked really fine several hours ago, but few hours later, the 'Your IP Address has been listed at DroneBL' has been present everytime i connect to CnCNet, not only that, the exact same message is on Yuri's Revenge's CnCNet client too, what should i do? should i request removal? I'm not sure if this will result in something much worse like deleting my IP or being unable to use some servers such as Valve's matchmaking servers, Any idea what to do please?
    • By DigitalRonin
      Greetings,
      For some reason my DTA client doesn't work anymore, and this is the case for everything I own. E.g, MO and TI etc... I have installed Windows 10 lately so that could be an issue with some .dll file or something, idk. Tried to reinstall one of the mods but didn't work, also installed XNA framework 4.0 but nope.
      Here is my client folder.
      - DR
      client.log
    • By Mr.Allar
      I have problem with C&Cnet client using mods all force native screen resolution witch is 3840x2160 and i cant change it since it reverts manual change in ini file back to native and only way i can use custom screen resolution is by making ini read only. I add pictures of my problem i only hope that there is a way to fix this.



  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...