[Cs4800] Cannot cast to HSRConfig

karan bhat bhat.r.karan at gmail.com
Thu Nov 24 13:38:51 EST 2011


Hi,

You can always ask Ravi to run it.  It does not have to be, you have access
to your PlayerMain File change the code in this file as you like it..point
it to the config provided and run your avatar.

Thanks,
Karan Bhat


On Thu, Nov 24, 2011 at 1:30 PM, Matthew Strax-Haber
<straxhaber at gmail.com>wrote:

> Can we run another practice HSR tournament? I ran into the same issue.
>
> As an aside, why does the code have this hardcoded path comparison?
>
>
> Best regards,
> --
> ~ Matthew Strax-Haber
> Northeastern University
>
> On Nov 23, 2011, at 2:08 PM, David Richards wrote:
>
> > Follow up:
> >
> > I think I found the problem.  You need to literally put in
> "./Playgroundconfig/hsrDomain.txt" not just a path to the file.
> >
> >>     } else if (argArr[6].equals("./Playgroundconfig/hsrDomain.txt")) {
> >>        HSRConfig domainConfig = HSRConfig.parse(new FileReader(
> >>            argArr[6]));
> >>        cfg = new Config(scgConfig, domainConfig);
> >
> >
> > This means if you're running from the bin folder, you should copy the
> Playgroundconfig folder to the bin folder first.
> >
> > -Dave
> >
> > On Nov 23, 2011, at 2:04 PM, David Richards wrote:
> >
> >> Hi All,
> >>
> >> I get the following error both in the warm-up tournament and when
> running on my own:
> >>> Exception thrown while parsing: csp.CSPConfig cannot be cast to
> hsr.HSRConfig
> >>
> >> The command I'm running to connect ot the tournament is:
> >>
> >>> java -cp .:demeterf.jar:hamcrest-all-1.3.0RC2.jar
> scg.net.avatar.PlayerMainHSR 8889 bubbles.ccs.neu.edu root foobar 1
> ../Playgroundconfig/scgConfig_hsr.txt ../Playgroundconfig/hsrDomain.txt
> >>
> >>
> >> Does anyone have any thoughts as to what might be going wrong?
> >> I'm guessing it has something to do with this line in my code:
> >>> HSRConfig hsr_cfg = (HSRConfig)config.getDomainConfig();
> >>
> >> but that was working fine with past versions, and it seems the
> BabyAvatar is doing the same thing....
> >>
> >> -Dave
> >>
> >>
> >>
> >
> >
> > _______________________________________________
> > Cs4800 mailing list
> > Cs4800 at lists.ccs.neu.edu
> > https://lists.ccs.neu.edu/bin/listinfo/cs4800
>
>
> _______________________________________________
> Cs4800 mailing list
> Cs4800 at lists.ccs.neu.edu
> https://lists.ccs.neu.edu/bin/listinfo/cs4800
>
-------------- next part --------------
HTML attachment scrubbed and removed


More information about the Cs4800 mailing list