MMO Starter Kit

Hello I’m having trouble ruining the client to setup a new character. This is what I’m getting heres a pic.

Iv changed this to what the docs say to do. I have my php and mysql setup I even tried getting a new website just to make sure that I did not miss anything but all looks good. Please help thanks

“The only thing that cheat engine allows is to tick more often and therefore run faster.” That wouldn’t work either.

Those errors aside, what happens in the game that’s unexpected?

Hello ** I got it to work, what i did was download a new version of unreal engine source, so I downloaded the 4.25 version and compiled it and did the database parts and everything and it works now, its just because I downloaded a new version then what the docs say, :)**

@ Hey whats up. I’m new around here and just recently purchased the mmokit. Currently im having an issue with auto retaliation. If i have say 5 aggro bandits on me (red guy) and line them up, sometimes it will go to the next target, other times it wont. I dont really know whats going wrong but its not always retaliating so my character will just sit there being hit while not retaliating. I even tried a fresh mmokit install and it still does it. Can you please look into this?
On 1 test it successfully killed all 5 red guys but not 1 orange guy i happened to hit before stopping to test it.
On another test it retaliated after the first kill (so 2nd target) then no more (3 other npcs were left attacking me constantly while i just stood there).

edit: I think it may have something to do with the dead bodies on the ground. I’ve noticed twice in a row it didnt attack my final target (5th guy) and i started backing up and the guy wasnt running after me (he was stuck on the dead bodys on ground). If i had to guess, id say it was going to retarget to nearest AI but the dead body somehow cancels it out.
(re-edit regarding above) - i changed the dissapear to 0.1 and it still ends up stopping the auto attack, along with the occasional error of:
Blueprint Runtime Error: “Accessed None trying to read property CurrentTarget”. Blueprint: BP_MMOCharacter Function: Execute Ubergraph BP MMOCharacter Graph: EventGraph Node: Branch )

(Additional re-edit) - after literally 4 hours of testing everything i can, i have determined the following:
*Changing ‘Pawn’ collision in the AI collision sphere to ‘ignore’ so that the AI arent being blocked and can run through each other has fixed nothing. It still randomly stops attacking/retargetting even tho i still have AI on me
*Hitting all 5 AI in a round robin style changed nothing (was thinking maybe there is an aggro number somewhere and once its down to 0 the system stops auto-retargetting to the Ai in question with 0 aggro on my own character, or something like that).
*Tried messing all around with collision for Mesh and the capsule component made no difference when it comes to retargeting. I tried so many mix and matches for both and didnt get the results i was hoping for.
*Tried adding in a collision trace on AI death inside the ‘Capsule Component’ to change ‘Pawn’ to ‘Ignore’ so that npc’s can run through a dead guy but that didnt change anything, its almost like the nameplates have their own collision or something. I just might need to test more on this one.

Issue #2: No loot particle effects are spawning anywhere on dead bodies. Not sure if this is intentional? I found the little segment of code (BP) and it looks like it would be fine but im not seeing any particle effects at all :frowning:

Issue #3: When i added my doll map over into my main map, my FPS dropped from 60+ to low 40’s. If i make it invisible in the editor i get the frames back but once im in game its just a constant loss of FPS. No idea why this small doll map would kill my frame rate O_o

Issue #1 Fixed. Took me 8+ hours for such a simple fix -.-
All it needed was a delay node in the retarget sequence. My guess is its triggering that whole sequence too fast or its trying to target the same now dead target.Perhaps the rest of the system needs that time to register some changes to the now dead AI. By giving it a short delay it fixes the issue so whatever, im happy.

1 Like

Is anybody actually able to contact code spartan? There’s not much support going on here :frowning: There is the discord channel but only code spartan is going to know how to fix certain stuff or whats going wrong.

And now im back to where re-targeting isnt working PERIOD…I’m getting tired of this broken stuff :confused:
Its not even working on the fresh mmokit -.-

Hey. I can always be contacted by email when I’m not around for a while.
Sorry for the long delay in answering.

There’s no auto retaliation. Did you code it yourself? Because I just checked, I don’t have any behavior when the player gets hit.
I’ll try to put something together tomorrow and get back to you.

I started working on it, but I never finished it.

Doll map exists for this:

https://i.gyazo.com/5de55dc1dada2e4bcb4558fbde8c7933.png

Not sure why you have a fps drop. Does it happen in stock mmo kit for you?
Try doing a backup and then deleting things from the dollmap. The three point lights and the spot light. Then the doll. Experiment with it a little.

What is the email i can contact you on? I didnt see one on your very first post or in profile :open_mouth:

So here is a video to show you and explain the 2 things (Auto-Retarget, Auto-Retaliation)

As for the dollmap, its not a huge performance hit. I’ve retested a spot to check and its only the difference of like 5 fps. I’m going to try to package the game and do my tests there to see if maybe its just the editor thats causing the extra loss in frames. I’m going to do 2 packaging, 1 with dollmap and 1 without it, then ill get back to you if i find something off. I did try deleting the spotlights about a week ago and it did make a difference of a couple frames.

Hey, I watched the first two minutes and realized that I was wrong. I thought that there was no auto retarget, but I saw the “auto retarget” function in your video and it jogged my memory. I haven’t watched the video past the 2 minute mark, sorry, but I’d rather prefer text if there’s anything important there.
I’ll try to fix the auto retarget issue within the next few days and I’ll post the fix here.

Fair enough, ill keep things in the future as pics and text. Thanks for looking into it! The video shows how i ‘fixed’ it if you want to call it a fix lol.

Is the demo still working?
I installed it and created a character but when i goto play just looks like im under the world and cant do anything…
Any ideas?

Your character fell under the ground and his coordinates are saved as such in the db.
When in play mode, go to World Outliner, click on ViewOptions->World->Server, then search for “player” in the outliner, look for BP_MBP_ModularPlayerCharacter_C, select it and change its position, in particular set the Z axis to 21000 or higher.
Your character will find itself above ground and from then on it will save into db with correct coordinates.

Had a look at the code. I’ll add it to the next version, but otherwise here’s how it should look:

Cut out the big chunk of nodes here:

https://i.gyazo.com/62474f520ad9ff16b776ec28b7b3c897.png

Add this:

https://i.gyazo.com/96174db7fdb99f94e438f8aff5fc0460.png

https://i.gyazo.com/c3880ffbc241e1aad4f35ca8dee1d5f1.png

Perfect :smiley: Thanks a lot, works great!

U will update this project to version 4.26?

Of course.

Released the 4.26. It has the new auto-retarget when targeted enemy dies, that I wrote a few posts above.

@ Hey im trying to add a new item type that teleports me from my chat command that i already have setup. Only problem is i cant figure out how to go about adding a new item type. For example i looked at the equipment stuff since it ‘destroys’ the item on right click and moves it onto doll but the way all that code is it jumps all over the place and does things in multiple places so i cant make heads or tails of it.

Basically my goal for right now is to simply make a new item that when right clicked it just destroys a single one (potion). From there i should be able to tweak it however i see fit, but the only code that exist is for equipment. Do you have a guide? Once ive done a single new one i shouldnt have any problems tweaking it from that point for multiple other uses.

Edit: So far this is as far as i have got. I added a ‘IsRecal’ bool to the ItemData.h so when im creating the item as data asset, i can check mark the IsRecal. Doing it this way means i would need to have a checkbox for each of my towns (7 towns) since im still inexperienced with the more advanced stuff but thats okay since im doing it the easy way for now.
**Edit2: **Spoke too soon it even activates my teleporting while equipping a piece of armor lol.


after that i navigate to bp_modularplayercharacter and you can see the code here i have changed. I know its wrong since i made the change in itemdata.h and this change in image shows i just added a isArmor and isRecal to the Structure FinventoryItem which wont work in this case since theres no link between the itemdata and FinventoryItem, but you can see what im trying to do. I have no idea how to actually get the information from the itemdata.h for isRecal bool and make that the condition. This way if its an equipment piece it’ll run the isArmor stuff on right click. If its the isRecal bool then it’ll run my MangelRecal function.

Edit: Hey i actually got it to work by doing this below. Hopefully i can figure out an easier way of setting up multiple towns without having to add a bunch of booleans (1 for each town)