generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Club Houses » Off Topic
Home Search
 

Re: I'm wondering if anyone can help [terraria mod related]

Previous Thread :: Next Thread 
deadpandipper6567 is not online. deadpandipper6567
Joined: 02 Feb 2013
Total Posts: 8661
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
NumberFF0000 is not online. NumberFF0000
Joined: 01 Jan 2016
Total Posts: 5968
14 Mar 2016 02:59 PM
Minecraft>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>Terreria to be quite honest
Report Abuse
Astrain1 is online. 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
deadpandipper6567 is not online. deadpandipper6567
Joined: 02 Feb 2013
Total Posts: 8661
14 Mar 2016 03:00 PM
I'm being serious. I need help with this code.
Report Abuse
ralftrol is online. ralftrol
Joined: 08 Apr 2013
Total Posts: 8528
14 Mar 2016 03:00 PM
Terraria > Minecraft

more items
more bosses
more everything
Report Abuse
shinjinjustunte is not online. shinjinjustunte
Joined: 30 Jun 2015
Total Posts: 484
14 Mar 2016 03:00 PM
I asked my cuz who loves terraria maybe he can aswer


Report Abuse
FlaminMetal is not online. FlaminMetal
Joined: 26 Oct 2012
Total Posts: 28388
14 Mar 2016 03:01 PM
Read the error message

Pretty obvious
Report Abuse
deadpandipper6567 is not online. deadpandipper6567
Joined: 02 Feb 2013
Total Posts: 8661
14 Mar 2016 03:01 PM
I did.
Report Abuse
sixteen is not online. 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
NumberFF0000 is not online. NumberFF0000
Joined: 01 Jan 2016
Total Posts: 5968
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
FlaminMetal is not online. FlaminMetal
Joined: 26 Oct 2012
Total Posts: 28388
14 Mar 2016 03:03 PM
Reflect on it
Find the error
Maybe something isn't there

Figure it out for yourself
Report Abuse
deadpandipper6567 is not online. deadpandipper6567
Joined: 02 Feb 2013
Total Posts: 8661
14 Mar 2016 03:03 PM
No idea what it means.
Report Abuse
FlaminMetal is not online. FlaminMetal
Joined: 26 Oct 2012
Total Posts: 28388
14 Mar 2016 03:04 PM
You shouldn't be making this then :p
Report Abuse
deadpandipper6567 is not online. deadpandipper6567
Joined: 02 Feb 2013
Total Posts: 8661
14 Mar 2016 03:04 PM
Well I'm banned on the official terraria forums.
Report Abuse
FlaminMetal is not online. FlaminMetal
Joined: 26 Oct 2012
Total Posts: 28388
14 Mar 2016 03:04 PM
:o
Your naughty
Report Abuse
sixteen is not online. 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
deadpandipper6567 is not online. deadpandipper6567
Joined: 02 Feb 2013
Total Posts: 8661
14 Mar 2016 03:08 PM
WAIT.
What if I rename the EpicnessPlayer to ModPlayer in the files.
Will that help?
Report Abuse
FlaminMetal is not online. FlaminMetal
Joined: 26 Oct 2012
Total Posts: 28388
14 Mar 2016 03:09 PM
Try it
Learn
Report Abuse
deadpandipper6567 is not online. deadpandipper6567
Joined: 02 Feb 2013
Total Posts: 8661
14 Mar 2016 03:10 PM
Didn't work what i did
Report Abuse
deadpandipper6567 is not online. deadpandipper6567
Joined: 02 Feb 2013
Total Posts: 8661
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
deadpandipper6567 is not online. deadpandipper6567
Joined: 02 Feb 2013
Total Posts: 8661
14 Mar 2016 03:16 PM
Bump.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Club Houses » Off Topic
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image