Forgotten Hope Public Forum

Forgotten Hope 0.7 => General Discussion => Topic started by: Professor_Smith on 26-04-2009, 03:04:40

Title: Need help with clients ctd in my minimod
Post by: Professor_Smith on 26-04-2009, 03:04:40
Hi There,
     I've been making a mini-mod of all the great mods out there for the past 5 years now (FH being a large part of said mini-mod).  I've been doing all of it on my own, asking questions on forums, getting tips, etc.  I'm close to the point where I will be placing the mod online, starting my own server, etc., but I'm having trouble with a few of the maps where the Clients will Crash to the Desktop.  This only happens in maps that I have placed in defense guns, machine guns, etc. that have soldier spawns in their objects.con files.  Can anyone tell me why this might be happening and what I can do to fix it?

     I have tried placing the custom objects into the maps, I've tried taking them out and placing them into the mod's Objects.rfa file.  I have the spawn group numbers seperate for each custom soldier spawning object, placed in the Game.rfa file.  Nothing I do seems to work.

     I am getting other errors when I use the debugger, like "Sound parameters false 1", and sometimes getting sound file larger than buffer size, but I don't think that would be causing these client crashes.

     The host computer is loading up the maps, but the clients still CTD.

Any Ideas???

Thank You,

Professor Smith

P.S.-Also, when I have FH installed on my computer, the serverinfo icons that I have chosen for my minimod, are always overwritten by the FH serverinfo icons that are next to each map name on the list.  Any way to stop this from happening?
Title: Re: Need help with clients ctd in my minimod
Post by: azreal on 26-04-2009, 05:04:13
Ok, when you say minimod you mean you are including the files and placing them into a new mod?
Title: Re: Need help with clients ctd in my minimod
Post by: Professor_Smith on 26-04-2009, 05:04:10
Okay, when I say mini mod, that means that I've taken objects, effects, etc. from other mods (such as FH), placed them in my mini mod, and edited them to fit.  I've already talked to most of the mod owners and gotten permission if thats what you're asking.  Can you help me with my problem(s)?

Professor Smith
Title: Re: Need help with clients ctd in my minimod
Post by: azreal on 26-04-2009, 06:04:36
Do you have any sort of proof to show that Lobo has given you permission, because I'm not going to get involved in this until you do.
Title: Re: Need help with clients ctd in my minimod
Post by: Professor_Smith on 26-04-2009, 16:04:02
     If you talk to Lobo yourself, just ask him about the Professor_Smith who had a strange way of getting answers on the forum.  He and I were talking for a bit after that, and he gave me every answer he could in helping me get thru previous problems.  Really is a nice guy.  Anyway, as I told him, I had never even checked to see what a mini-mod was until he started explaining it to me (please remember, I spent 5 years off and on, perfecting a mod myself; no modding team, and had to find out a lot of things the hard way).  Anyway, just contact Lobo, and he should know who you're talking about.

     Oh, and by the way, I tried converting a different map recently to my mini mod, and it loads up all the way to the ready screen, but then CTD as well.  The debugger says that there is an "Unknown kit part", but it doesn't list in which kit this unknown part is.  I think it is interference from one of the other mods.  Is there a way to decide what my mini mod uses out of the original mods, and what it doesn't use?
Title: Re: Need help with clients ctd in my minimod
Post by: Natty on 28-04-2009, 08:04:04
Professor_Smith for the last time, you've been coming to this forum with this Mod too many times asking how to do that and this.... No one cares if you spent 5, 10 or 20 years making this Mod, you are not releasing a Mod containing FH content unless your mod requires FH 0.7 to be installed meaning you make a Mini-Mod to FH... You say in this thread you're making a Mini-Mod - no you arent, you are making a normal Mod, with loads of content from other Normal Mods... A MiniMod tells in init.con to read bf42 > realMod > YourMod.

I am 100% totally against this Mod, no matter what Lobo has said - just make it MiniMod!! Why on earth is this so much of a problem for you?? If you make it a miniMod, Im 100% FOR this Mod, because it can be cool, and I wouldnt mind helping you with the crashes, as for now, and the way you present the mod and your talk with Lobo, I just feel angry about it.

Make a better presentation, explain your ideas, list the content, be professional... Now you give the impression of a copy-paste ripper modder, something everyone is against.

I rarely get upset like this, but just_make_the_mod_read_fh_from_init.con as it should be.

Period.
Title: Re: Need help with clients ctd in my minimod
Post by: Lobo on 28-04-2009, 15:04:25
I said him that he can't add unedited FH files, only his edited work, ergo he must make a minimod, ergo the player must have FH installed or his mod doesn't work.

If he didn't understand this is another matter

Quote
Okay, when I say mini mod, that means that I've taken objects, effects, etc. from other mods (such as FH), placed them in my mini mod, and edited them to fit.  I've already talked to most of the mod owners and gotten permission if thats what you're asking.

This is not a mini-mod, and you have NOT our permission to add our content under these conditions, so mini-mod or nothing, I told you hundreds times.

Title: Okay, both of you are TOTALLY MISSING the point of what I've said-READ CAREFULLY
Post by: Professor_Smith on 29-04-2009, 00:04:13
Okay, to get this straight in both of your heads, I DO PLAN on making the init file read from FH and the other mods that certain things are from, to fill in the blanks, and make it a mini-mod.  I have no problem with that as I said before.  The problem I'm having, is that when I DO HAVE the init file read from other mods such as FH, it causes my clients to crash.  I, the host, load up just fine,  but they crash when they try to connect.  Can you now please answer my questions above.  As for all the things I've copied and pasted, I have re-edited a lot of them to fit the style, personality, etc. of the mini-mod I've created.  Mostly, this mini-mod is going to be reading the textures, standardmeshes, etc. off the mods things were used from.  The scripting has been redone.  I could give examples, but it'd probably just be easier sending you a few files and having you look over them or something.

Now, on another matter, I noticed a lot of the FH scripting used conditional statements.  I found a small tutorial on using conditional statements, but not enough to Really Understand it.  So, I was wondering, do either of you or anyone you know, have a better tutorial for learning how to use conditional statements?  Also, please answer my other questions in my original messages guys, and stop trying to make it seem as if I'm trying to make a full mod here.  I'm not.  I am doing this to make a mini-mod of LOTS OF many different mods, PROMOTING SAID OTHER MODS.  My goal is to make a server, hopefully get some dontations thrown my way, and in return, throw a percentage of said donations to each of the modding teams that I used material from.  Does that make more sense to you guys?

Professor Smith
Title: Re: Need help with clients ctd in my minimod
Post by: Lobo on 29-04-2009, 02:04:35
Quote
I have the spawn group numbers seperate for each custom soldier spawning object, placed in the Game.rfa file

Don't add more spawn groups in that game.rfa file, BF42 acepts a limited number of those and FH reached the limit. Add one more and the clients disconect

Professor_Smith , I really hope you are doing this how I told you, I mean, remove FH folder out of your BF42 installation, if your mod still works I release the Hound Dogs
Title: Re: Need help with clients ctd in my minimod
Post by: [130.Pz]S.Lainer on 29-04-2009, 03:04:24
  Hold on guys....Let me grab some popcorn.
Title: Re: Need help with clients ctd in my minimod
Post by: Professor_Smith on 29-04-2009, 03:04:21
Lobo, what was the number limit that FH reached.  Do you remember?

Professor Smith
Title: Re: Need help with clients ctd in my minimod
Post by: Lobo on 29-04-2009, 03:04:09
I don't know man, I am not coder, I know this specifically because we broke this rule when we were developing 0.7 to add some spawn groups for sea vehicles in Saipan map. It screwed maps with lot of cp's and spawn groups, like ramelle.

We got nuts until I asked our former coder and we were brainstorming, he asked about the spawn groups and we found out the bugger. Years later the BG42 guys had the same issue, and we laughed a lot, it's the only thing I know about advanced code.

I think FH is in the limit, check the file, count, that
Title: Re: Need help with clients ctd in my minimod
Post by: Professor_Smith on 29-04-2009, 03:04:24
Thank You.  So, what about objects like mgs and def guns, that have soldier spawns scripted into the object's objects.con file?  Would that be causing any problems that you or anyone else knows of?  Could you ask your team?

Thanks Again,

Professor Smith
Title: Re: Need help with clients ctd in my minimod
Post by: Natty on 29-04-2009, 08:04:54
It is the combined number of active SpawnGroups per map that counts, doesn't matter if its from Controlpoints (which I hope you know the limit is 8 ) or Spawngroups or Objects.con
The limit is somewhere above or close to 12-13 IIRC (per map)

So if "your" map has 5 CPs, you can add a few defguns with spawnpoints, some mobile spawnpoints etc, just check any fh map, count active spawngroups.. Iwo Jima is a good measurement. (has 12 I think)

Post your init.con, and if you want any more help from me, change the attitude in general!

ServerInfo icon will show if you set up your mod correct (and path in Menu/init.con in the maps), its easy, just menu textures.

Title: Re: Need help with clients ctd in my minimod
Post by: RedSand on 30-04-2009, 08:04:11
I havent read all these posts, but I'm getting the general negative aura here and have to ask, weren't you working on this like 2 years ago?
Title: Re: Need help with clients ctd in my minimod
Post by: Fuchs on 01-05-2009, 11:05:12
  Hold on guys....Let me grab some popcorn.
Sit back and watch, the cooler with beer and soda is on your left side.
Title: You wanted me to post my init.con file and here are a few more questions...
Post by: Professor_Smith on 08-05-2009, 19:05:08
game.SetCustomGameName HTroop
game.addmodPath Mods/HTroop/
game.addmodPath Mods/FH/
game.addModPath Mods/bf1942/






game.customGameFlushArchives 0

game.setCustomGameVersion 1.61b
game.setCustomGameUrl ""


Game.setMenuMusicFilename ""
Game.setLoadMusicFilename "music/vehicle4.bik"
Game.setWinMusicFilename "music/vehicle3.bik"
Game.setLoseMusicFilename "music/menu.bik"
Game.setCampaignLoseMusicFilename "music/theme2.bik"
Game.setDebriefingMusicFilename "music/briefing.bik"


game.setCustomGameInfo "Welcome to HTroop gentlemen!  The Grand Admiral has hand picked each and every one of you to be part of this new battallion for each of your special talents.  Because of reports of the enemy releasing new weaponry and equipment into the field of battle ahead of our time estimates, we've decided to do the same, and even out the playing field.  You will be charged with testing this prototype equipment during your combat missions.  I advise you not to use the nuclear(Yes I said nuclear) detonation packs too much.  We don't want your parents asking questions like why is my son glowing?.....There are a lot more modifications we've made that you'll be testing so get your butts out there and give'em what for!!"

--------------------------------------------------------------------------------------------------------

- Does it matter which order in which the line:

"game.addmodPath Mods/[Mod Name]/"

must go in my mod's init file?  Which mods should be read from first thru last?

- When that line above is placed into the init.con file, how will I know what .rfa files, and what objects, and such will be read from each different mod?
--------------------------------------------------------------------------------------------------------

- What happens (in detail) when my mod reads off of your's, if some of the scripting lines/commands are the same, and some are different in my versions of your vehicles, objects, etc. (i.e. keeping the original models, etc., but not all of the original scripting)?

- Another example of what I'm talking about is the fact that FH modders changed the scripting almost completely themselves, making regular bf1942 vehicles not able to damage, collide with, etc. the FH vehicles.
--------------------------------------------------------------------------------------------------------

- Some maps are still crashing to the desktop, when I am the host, running a local area network game or internet game.  With some maps, this happens when switching from map to map, even though when those same maps are placed at the top of the list of maps you start to play, it loads in just fine.  Any ideas of why this is happening?  It seems as though when I "Alt + Tab" out to the desktop while the maps are switching, then "Alt + Tab" back, it helps to load it, but then randomly, within the middle of the map being played (half the tickets down), it just suddenly CTDs.
--------------------------------------------------------------------------------------------------------
(Off topic question)

- Is there a way to place the crosshairs in 3rd person view and the line of sight correct for the crosshairs, compensating for the differend angle of the camera?
--------------------------------------------------------------------------------------------------------

Thank You,

Professor Smith
Title: Re: You wanted me to post my init.con file and here are a few more questions...
Post by: Natty on 11-05-2009, 19:05:40
--------------------------------------------------------------------------------------------------------

- Does it matter which order in which the line:

"game.addmodPath Mods/[Mod Name]/"

must go in my mod's init file?  Which mods should be read from first thru last?

Like you wrote it, bf1942 from the bottom, then Fh, then your mod at the top. IIRC (It is 1.5 years since I made a bf42 mod) init.con always reads from the bottom - up. This is important for example when AlternativeTexturePathing maps.

- When that line above is placed into the init.con file, how will I know what .rfa files, and what objects, and such will be read from each different mod?
Well, it is quite easy to know - the .rfa files that is in each mod, will be read... If you have an Object in Htroop with the same name as an Object in any of the others, your version will overwrite those ones...
Just check Sherman. Compare Sherman in bf1942 and Sherman in FH.
It will read all .rfa files...
--------------------------------------------------------------------------------------------------------
- What happens (in detail) when my mod reads off of your's, if some of the scripting lines/commands are the same, and some are different in my versions of your vehicles, objects, etc. (i.e. keeping the original models, etc., but not all of the original scripting)?

Well, in bf1942 if you have an Objects.con file in your mod (take Sherman again, say you want to give it another Material, or mor or less HitPoints) it will replace any previous Objects.con file for that object (e.g. both bf1942 and FH).. By this I mean; the whole file.. the engine doesnt compare lines inside the .con files, it reads whole, or nothing.
- Another example of what I'm talking about is the fact that FH modders changed the scripting almost completely themselves, making regular bf1942 vehicles not able to damage, collide with, etc. the FH vehicles.

Yes. FH has a totally different DamageSystem than bf1942. It is virtually a different game... If you for example make a map and put a FH Tiger against a bf42 Sherman, the sherman will win. (or if it is the other way around, doesn't matter). You also need to check the Material on the StandardMesh.sm files on all vehicles, it is not enough to just edit the Material in the Objects.con. (e.g. open model in 3dStudioMax, check the surfaces which material they have, correspond look in the MaterialManager.con file and the DamageSystem file)
--------------------------------------------------------------------------------------------------------
- Some maps are still crashing to the desktop, when I am the host, running a local area network game or internet game.  With some maps, this happens when switching from map to map, even though when those same maps are placed at the top of the list of maps you start to play, it loads in just fine.  Any ideas of why this is happening?  It seems as though when I "Alt + Tab" out to the desktop while the maps are switching, then "Alt + Tab" back, it helps to load it, but then randomly, within the middle of the map being played (half the tickets down), it just suddenly CTDs.

Omg, well I have troubleshooted so many similar crashes and they are all different.... I usually clear the map of all spawning things, then add a bunch, test, add, test etc until I localize the crash-cause... I guess you know how to scan the debugger output file and check for errors related to that map... it it boring, but most of the time, the cause is there.... and it is usually something Spawning that does it.
--------------------------------------------------------------------------------------------------------
(Off topic question)
- Is there a way to place the crosshairs in 3rd person view and the line of sight correct for the crosshairs, compensating for the differend angle of the camera?

This I have no idea at all about... 3rd person view?.. IMO that is a bf42 bug, which allowed 3P view in all Mods that I know of... the "line of sight" will be always from the camera -> to the crosshair in any case, and it would be weird/bad to have a game that had anything different...
--------------------------------------------------------------------------------------------------------

good luck, as I said, I might have forgot some bf42 stuff, as its been a while.  8)
Title: Re: Need help with clients ctd in my minimod
Post by: Professor_Smith on 18-01-2011, 21:01:13
I havent read all these posts, but I'm getting the general negative aura here and have to ask, weren't you working on this like 2 years ago?

Yes, you are correct.  I have been working on this mod for 6 or 7 years now (it's been so long, I can't even remember).  I'm only one man though.  The only help I've been getting has been people play testing the mod and those answering questions I have over forums, etc.  I haven't gotten any offers of actual editing help yet.  I know it'll sound cheesey, but I feel like i'm in the children's story of Henny Penny.

Professor Smith
Title: Re: Need help with clients ctd in my minimod
Post by: Natty on 18-01-2011, 22:01:58
impossible to not post this at this moment....  :-\

(http://i225.photobucket.com/albums/dd187/GrandLordKhorne/online%20use/thread_necromancer.png)
Title: Re: Need help with clients ctd in my minimod
Post by: Professor_Smith on 18-01-2011, 22:01:00
Gee Natty.....And you think I need to adjust my atitude?  You'd better hope that we never meet one another face to face *@@#%$&

Another useful tidbit by Professor Smith

Professor Smith

P.S.-Kinda figures you're a Magic player (no imagination).
Title: Re: Need help with clients ctd in my minimod
Post by: FatJoe on 19-01-2011, 00:01:56
impossible to not post this at this moment....  :-\

http://i225.photobucket.com/albums/dd187/GrandLordKhorne/online%20use/thread_necromancer.png


Really possible to not post that at all, actually.. Unless, of course, you really have this strange urge of acting like an asshole when you really don't have to, nor should..

..just saying
Title: Re: Need help with clients ctd in my minimod
Post by: RAnDOOm on 19-01-2011, 00:01:14
I gotta agree with FatJoe on this.  If you could read the book "How to restrain" made for children, it would be good for you Natty.

Professor_Smith you tried but didnt achieved, it happens. Good luck for the future projects.

impossible to not post this at this moment....  :-\

http://i225.photobucket.com/albums/dd187/GrandLordKhorne/online%20use/thread_necromancer.png


Really possible to not post that at all, actually.. Unless, of course, you really have this strange urge of acting like an asshole when you really don't have to, nor should..

..just saying
Title: Re: Need help with clients ctd in my minimod
Post by: azreal on 19-01-2011, 01:01:52
settle down children.