|
| 14 Mar 2016 02:58 PM |
I'm creating a mod for terraria, but my code doesn't work when I Build and Reload the mod in tModLoader (Modding thing).
The Error: c:\Users\DOMEK\Documents\My Games\Terraria\ModLoader\Mod Sources\OmegaMod\OmegaPlayer.cs(14,32) : error CS0246: The type or namespace name 'ModPlayer' could not be found (are you missing a using directive or an assembly reference?)
The Code:
using System; using System.Collections.Generic; using System.IO; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.DataStructures; using Terraria.ID; using Terraria.ModLoader;
namespace OmegaMod { public class OmegaPlayer : ModPlayer { private const int saveVersion = 0; public int score = 0; public bool DarkMinion = false; public override void ResetEffects() { DarkMinion = false; } public override void SaveCustomData(BinaryWriter writer) { writer.Write(saveVersion); writer.Write(score); }
public override void LoadCustomData(BinaryReader reader) { int loadVersion = reader.ReadInt32(); score = reader.ReadInt32(); } } }
|
|
|
| Report Abuse |
|
|
|
| 14 Mar 2016 02:59 PM |
| Minecraft>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>Terreria to be quite honest |
|
|
| Report Abuse |
|
|
Astrain1
|
  |
| Joined: 27 Mar 2013 |
| Total Posts: 18697 |
|
|
| 14 Mar 2016 02:59 PM |
did you try turning it off and on again
jeb get me the seperatrons |
|
|
| Report Abuse |
|
|
|
| 14 Mar 2016 03:00 PM |
| I'm being serious. I need help with this code. |
|
|
| Report Abuse |
|
|
ralftrol
|
  |
| Joined: 08 Apr 2013 |
| Total Posts: 8528 |
|
|
| 14 Mar 2016 03:00 PM |
Terraria > Minecraft
more items more bosses more everything |
|
|
| Report Abuse |
|
|
|
| 14 Mar 2016 03:00 PM |
I asked my cuz who loves terraria maybe he can aswer
|
|
|
| Report Abuse |
|
|
|
| 14 Mar 2016 03:01 PM |
Read the error message
Pretty obvious |
|
|
| Report Abuse |
|
|
| |
|
sixteen
|
  |
| Joined: 16 Nov 2008 |
| Total Posts: 535 |
|
|
| 14 Mar 2016 03:02 PM |
@Number
They're hardly even comparable. Terraria doesn't even follow the same gameplay aspects |
|
|
| Report Abuse |
|
|
|
| 14 Mar 2016 03:02 PM |
"more items"
Can get more if you get mods but I am not because I do not want a virus
"more bosses"
Minecraft has only one boss |
|
|
| Report Abuse |
|
|
|
| 14 Mar 2016 03:03 PM |
Reflect on it Find the error Maybe something isn't there
Figure it out for yourself |
|
|
| Report Abuse |
|
|
| |
|
|
| 14 Mar 2016 03:04 PM |
| You shouldn't be making this then :p |
|
|
| Report Abuse |
|
|
|
| 14 Mar 2016 03:04 PM |
| Well I'm banned on the official terraria forums. |
|
|
| Report Abuse |
|
|
| |
|
sixteen
|
  |
| Joined: 16 Nov 2008 |
| Total Posts: 535 |
|
|
| 14 Mar 2016 03:05 PM |
it can't find "ModLoader"
so work on that |
|
|
| Report Abuse |
|
|
|
| 14 Mar 2016 03:08 PM |
WAIT. What if I rename the EpicnessPlayer to ModPlayer in the files. Will that help? |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 14 Mar 2016 03:11 PM |
| I think the key part of the error log is "re you missing a using directive or an assembly reference?" |
|
|
| Report Abuse |
|
|
| |
|