IPB

Welcome Guest ( Log In | Register )

> RCbot 1 SvenCoop 5.0 Progress?, Currios about it
Ryusho
post Mar 24 2016, 05:16 AM
Post #1


Member
**

Group: Members
Posts: 37
Joined: 25-December 08
Member No.: 1,436



Just currious since it has been silent for a while, was wondering if anyone has figured anything out, though I w ould gladly try to help if I knew much about coding and AI, >.< Though thinking about it I might be able to have a friend help if I can get him too, though he tends to be busy, but he is a programmer.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
 
Reply to this topicStart new topic
Replies
Solokiller
post Dec 19 2016, 12:31 PM
Post #2


Member
**

Group: Members
Posts: 23
Joined: 17-December 16
Member No.: 2,482



I downloaded the SC 4.5 release. It has a lot of compiler warnings so i set about fixing them.
I made a Github repo for this: https://github.com/SamVanheer/RCBot-Svencoop-CMake
I've fixed all compiler warnings when using VS2015 and GCC 5.3, but i have to go through and commit them.

Mostly using char* for string literals, unused variables and ambiguous use of && and ||, but i also had to fix the ent files having inconsistent line endings which caused it to generate exports for the same entities multiple times, and it didn't handle lines with only whitespace correctly (empty lines when using Windows line endings are essentially lines with one whitespace in them), so it generated empty exports too.

I also ported it to CMake using the Metamod-P CMake config i made a few weeks ago so it's easier to cross-compile now. From what i can tell there are 3 build types: Standalone, Metamod plugin and TFC. I've added the former 2, but the latter doesn't seem any different from those.

I also replaced the .def file with a pragma to add the GiveFnptrsToDll function to the ordinals table, not sure if that'll work for Borland but i've never used it, so i don't know. I can always add special support for Borland in the CMake file if needed.

It uses the CMake automatic deployment code that i added for Metamod-P, so if set it'll put the dll in <game dir>/<mod dir>/addons/rcbot/dlls. This lets you configure the game directory (Half-Life or Sven Co-op) and which mod it uses, so it's easy to work with.

Once i've committed the fixes the CMake files will be committed as well, i'll have to double check that all settings are mirrored in CMake first.

I've also noticed that the SC specific code doesn't handle the 4.0 changes, it uses the MP5 because it thinks it has the GL. I added a TODO item in the code for that, but i haven't checked all of the cases yet.

Some of these files are pretty large, so it might be a good idea to refactor some of this stuff out. I spotted some code that repeats several times, and explicit checks for whether it's a Metamod build or not, that can be abstracted out at a higher level.

The file I/O code handles platform specific path separators explicitly as well, it might be a good idea to let a lower level file API handle this. Something like the IFileSystem interface used by the engine would handle that part automatically.

Regarding Metamod, should RCBot be available as standalone or is the Metamod build the only one worth using? Seems like the standalone build requires a lot of manual work to forward exports, whilst Metamod-P does this automatically. It would certainly simplify a lot of code, and increase efficiency in calling these functions because it can call game functions directly. It would also cut down on exports that aren't used by the game being played, since out of the 3000+ exports only a subset are ever used by any given game.

Also, this won't run under Sven Co-op's engine without special changes because they modified engine function interfaces. I'm putting together a report that will hopefully convince them to revert the changes, but until then the standalone build will not function with 5.0 and newer. The Metamod-P fork that i developed will function with it though.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Posts in this topic
Ryusho   RCbot 1 SvenCoop 5.0 Progress?   Mar 24 2016, 05:16 AM
madmax2   I'm anxious for this too ;) , but I think Chee...   Mar 24 2016, 06:23 PM
Cheeseh   I'm anxious for this too ;) , but I think Che...   Mar 28 2016, 06:29 PM
madmax2   I got a reply from sniper on this today... http:/...   Apr 11 2016, 06:30 PM
madmax2   I got a reply from sniper on this today... http:...   Apr 15 2016, 08:01 PM
Cheeseh   Cheeseh, I sent you another PM about this, but s...   Apr 16 2016, 06:08 PM
madmax2   Left a message on their forums It's been sev...   Apr 19 2016, 09:56 PM
Cheeseh   It's been several days since you posted what ...   Apr 20 2016, 09:58 AM
Ryusho   Yay! Good to know progress is being made, and ...   Apr 13 2016, 10:51 PM
madmax2   I just PMed sniper about the 2 files. I tried post...   Apr 21 2016, 07:17 AM
Cheeseh   I just PMed sniper about the 2 files. I tried pos...   Apr 25 2016, 01:01 PM
madmax2   Okay, thanks... In the mean time, I'm "s...   Apr 28 2016, 04:42 AM
Cheeseh   Okay, thanks... In the mean time, I'm ...   May 2 2016, 09:01 PM
madmax2   there are some unresolved headers I require from ...   May 7 2016, 06:37 PM
madmax2   there are some unresolved headers I require from ...   May 13 2016, 06:31 PM
Cheeseh   Hey Cheeseh, Did you get what you need from Snip...   May 16 2016, 07:53 AM
madmax2   Not yet. But I just tried omitting some things th...   May 16 2016, 07:40 PM
Cheeseh   Ill need to check my old laptop for the latest sou...   May 18 2016, 12:37 PM
madmax2   Ill need to check my old laptop for the latest so...   May 18 2016, 05:37 PM
madmax2   Ill need to check my old laptop for the latest so...   May 28 2016, 07:22 PM
Ryusho   It has been 10 days & still no reply from sni...   Jun 1 2016, 01:27 AM
madmax2   Okay, thanks... In the mean time, I'm ...   May 5 2016, 08:53 PM
Ryusho   Well I'm probably going to work on making Bot...   May 6 2016, 02:34 PM
madmax2   It sounds like we have similar approach to waypoin...   May 7 2016, 12:05 AM
madmax2   It didn't update yet, but I did get a reply fr...   Jun 6 2016, 10:57 PM
Ryusho   Ahh alright then *nods*   Jun 11 2016, 04:30 PM
Ryusho   Just thought I would check in since it's been ...   Jul 13 2016, 08:49 AM
The HHH   Just thought I would check in since it's been...   Jul 22 2016, 08:09 AM
madmax2   Aye, I'm curious if anything new's happen...   Jul 23 2016, 08:02 PM
Ryusho   Just making my little one month check-bump, Though...   Aug 28 2016, 03:08 PM
madmax2   Just making my little one month check-bump, Thoug...   Aug 28 2016, 07:23 PM
Cheeseh   Yeah, I think we still are waiting on headers fro...   Oct 28 2016, 09:33 PM
Ryusho   Sorry for the late reply. Yes please ask sniper a...   Nov 9 2016, 01:14 PM
The HHH   well this topic died In the meantime I messed arou...   Oct 13 2016, 04:14 PM
Ryusho   Yeah it has kinda died...I'm still waiting but...   Oct 28 2016, 10:12 AM
madmax2   Ok, will do... Good to have you back... Guess you...   Oct 28 2016, 10:10 PM
w00tguy123   Perhaps w00tguy or some one will give it a go??? w...   Nov 10 2016, 06:51 PM
madmax2   I tried, but got discouraged after having crash i...   Nov 10 2016, 08:36 PM
w00tguy123   I see... Would it help to have a working metamod ...   Nov 12 2016, 12:59 AM
madmax2   Sorry to hear you dropped your SC projects, you ar...   Nov 22 2016, 09:52 PM
Solokiller   What kind of information do you need to get workin...   Dec 17 2016, 08:28 PM
madmax2   Hi Solokiller, Welcome to the forum :) ... Hopefu...   Dec 18 2016, 09:59 PM
Solokiller   I downloaded the SC 4.5 release. It has a lot of c...   Dec 19 2016, 12:31 PM
w00tguy123   I'd say the standalone version isn't worth...   Dec 19 2016, 06:08 PM
Solokiller   I'd say the standalone version isn't wort...   Dec 19 2016, 06:46 PM
madmax2   Hey Solokiller, Yeah, Cheeseh dropped support for...   Dec 20 2016, 02:06 AM
Solokiller   I'll wait until Cheeseh replies and i'll t...   Dec 24 2016, 01:37 PM
Gordon9999   I also tested RCBot with SC 5.08; bots spawn but ...   Dec 24 2016, 09:27 PM
Solokiller   RCBot seems to be causing crashes on map change, s...   Dec 29 2016, 12:43 PM
The HHH   Any news since the last post? I'd really hate ...   Feb 15 2017, 05:40 PM
Gordon9999   Any news since the last post? I'd really hate...   Feb 16 2017, 05:48 AM
Solokiller   I reminded them: https://facepunch.com/showthread....   Feb 16 2017, 01:30 PM


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 20th June 2025 - 11:18 AM