[HELP]CoEmu 2 content not working?

06/09/2009 14:03 Incariuz#1
I really didn't want to have to ask, but I seem to have no other choice.

So here's the deal, I've been leeching some content from a few members here to add onto the source to help make any work I'm going to have to do easier. Everything compiled properly, no issues, but when I load the game and play, none of the added material works. Is it possible I'm doing something wrong? If so, can anyone provide me some insight as to what it may be.

Edit: On a side note, is anyone having problems with bridges on maps? Just curious, guessing something needs to be changed with Dmaps, but that's something I've never worked with. Find out more about it at a later point in time.
06/09/2009 16:26 Kiyono#2
Kinshi posted a fix for the DMAP thing.
Go to Structs/DmapData.cs and search for:
Code:
public bool CheckLoc(ushort x, ushort y)
replace that bool with:
Code:
public bool CheckLoc(ushort x, ushort y)
			{
				try{
					if(Tiles[x,y] == 1)
					{
						return true;
					}
                    else if (Tiles[x, y] == 0) // Bridges, Floating Rocks, etc -Stuff by Kinshi88
                    {
                        return true;
                    }
					else
					{
						return false;
					}
				}
				catch
				{
					return false;
				}
			}
		}
06/09/2009 17:16 kinshi88#3
Quote:
Originally Posted by Kiyono View Post
Kinshi posted a fix for the DMAP thing.
Nah, that's the wrong way to do it, 1 = can walk, 0 = can't.
You have to load Scenes to fix bridges and stuff.
=D
06/09/2009 18:20 Incariuz#4
Well the Dmapping isn't my major concern (thanks though, I will look into that), I just don't get why nothing is working. I've worked with other sources, established my own coding (not always fantastic, but it worked). Now when I add something into this, build it, and play, it acts like it hasn't been added in the source. I just don't get it. Not even NPC's that I've added are working, the ones others have released (not my own, wanna see basic structures for them before I start). I highly doubt I've screwed up and put them in the wrong place, lol.
06/09/2009 18:50 Kiyono#5
Quote:
Originally Posted by kinshi88 View Post
Nah, that's the wrong way to do it, 1 = can walk, 0 = can't.
You have to load Scenes to fix bridges and stuff.
=D
Well you posted it in the first place lol
06/09/2009 20:44 kinshi88#6
Quote:
Originally Posted by Kiyono View Post
Well you posted it in the first place lol
But I also corrected myself on the first post =P
06/09/2009 21:38 Kiyono#7
Quote:
Originally Posted by kinshi88 View Post
But I also corrected myself on the first post =P
True ^^ but the bridges and stuff don't matter to me cause I'm not gonna host a server anyway.
06/11/2009 17:53 Incariuz#8
Well I tried deleteing the source, then setting it up again. Tried adding one thing at a time once it was running, but still the same issue. When I add a feature, the source builds, no problems. However, I run the servers, login, and whatever I added doesn't work. Doesn't matter whether it's an NPC, or loading for an extra Dmap, just nothing seems to want to take effect.

If anyone has any idea's, or would like to view the issue through teamviewer, it would be greatly appreciated.
06/11/2009 18:04 Kiyono#9
So not even debug works?
06/11/2009 18:18 Incariuz#10
debug works, I can get on the game, no problem there, but for example, this is just a small example.

I go to Structs/Map.cs

change

Code:
            Promotion = 1004,
            Arena = 1005,
            Stables = 1006,
            MapleForest = 1011,
            //WonderLand = 1013,
            DragonPool = 1014,
to

Code:
            Promotion = 1004,
            Arena = 1005,
            Stables = 1006,
            newbie = 1010,
            MapleForest = 1011,
            //WonderLand = 1013,
            DragonPool = 1014,
Build/Compile the source, then go into

CoEmu v2\CoEmu v2 GameServer\bin\Debug

and run CoEmu v2 GameServer

but the Dmap for BirthVillage still won't load.

Same deal if I add an NPC into the source, build/compile, run the game, go to the NPC ingame, it'll tell me it hasn't been coded, even though it has, and it compiled with no issues what so ever.

I just don't understand it, I worked a lot on LOTF, I've created a lot of custom coding in it to make different features work, from skills of all 3 kinds, NPC's, etc... So the idea of copying and pasting other peoples releases on here, or creating basic NPC's shouldn't be giving me issues like this, regardless of the fact that I'm not a pro, I still know the basics to making things work.

Edit: Could it be that I'm not debugging directly from Visual Studio? I don't get why that would cause an issue, but is it possible? If so, how do I get it to switch from the login server to the game server for debugging in visual studio?

Edit2: Ha, that was exactly the problem, I had to debug it directly from Visual Studio, wow, I feel like an idiot. But hey, atleast I have it figured out now. Thanks for offering some help Kiyono.