.scooter // User Search

.scooter // User Search

1  |  

Re: help with c++ error in linking (Fixed now)

Jul 8, 2006, 11:01pm
Hi .. fwiw

(Hambot 3.3 source with AWSdk 4.1 build 61)

Using VS2005 pro, These changes allow Hambot ver3.3 source to compile, link,
and create a working Release-ver, that will connect & run in AW4.1 (w/o
getting the errors related to ATL & CTime)

This method won't create a Debug-ver, due showing an unresolved external.

--------------------------------------------------

StdAfx.h
=========
// added at begining

#define _SECURE_ATL 0 // Disable Secure ATL
#define _CRT_SECURE_NO_DEPRECATE // Disable Warnings
#define _ATL_SECURE_NO_DEPRECATE // Disable Warnings


HamBotDlg.ccp
==============
// changed port

#define PORT_UNIVERSE_SERVER 6670


Bot.ccp
========
// Added to anounce position away from a worlds GZ on entering world.
// Bot isn't moved to user's coords in bot script until after world entry.

// changed under - CBot::CBot( ... )

m_lWestEast = m_lNorthSouth = 1000000;

// Added under - AWV2_GetWorldInfo()

aw_int_set(AW_MY_X, m_lWestEast);
aw_int_set(AW_MY_Y, m_lAltitude);
aw_int_set(AW_MY_Z, m_lNorthSouth);
aw_state_change();
return TRUE;


HamBotDlg.ccp
==============
// commented out following lines or sections
// that caused errors

// lines under - CHamBotDlg::ProcessScript()

case WORLD_RGB_RED: ...
case WORLD_RGB_GREEN: ...
case WORLD_RGB_BLUE: ...

// sections under - CHamBotDlg::Evaluate( ... )

case 'c': // red backdrop
case 'f': // blue backdrop
case 'g': // green backdrop

// sections under - CHamBotDlg::ExpandMacros( ... )

case 'c': // add red backdrop
case 'f': // add blue backdrop
case 'g': // add green backdrop

Also
======
// change includes to aw.h per your project
// #include "..\cof\aw.h"

#include "aw.h"




[View Quote]

help with c++ error in linking

Jun 25, 2006, 2:52pm
uhhhh, nope i dont know programming, just experimenting here but ...
this must have worked before in older c++ ver (VS98) & linking source with
aw 3.x sdk, ... but now with c++ ver8 (VS-2005 pro) , linking same source
with aw sdk 41 build 61, this "struct" line errors. (botdlg.ccp)


CString sTemp;
CString sNewBuffer;
int i, iOffset;
int iLen = sSource.GetLength();
CTime xTime = CTime::GetCurrentTime();
CTimeSpan xVRTOffset(0,2,0,0); // 2 hours offset from GMT
xTime -= xVRTOffset;
-> struct tm *xpTime = xTime.GetGmtTm();
char *spDest = sNewBuffer.GetBuffer(500);

// additional "if" , "for", "switch" , "case", stuff omited here
to save space

* linking error shows- error c2660: 'ATL::CTime::GetGmtTm' : function
does not take 0 arguments


ookay, like what arguments? ideas?
(using the 90 day trial IMG of VS2005 pro, and the msdn part of IMG has bad
files & wont install ,,, sure, i expected 2.7gig to dnload correctly, lol)

ok, experimenting & changing line to ...
struct tm *xpTime = xTime.GetGmtTm(0);
then at least project compiles / links / produces an exe wich runs, opens
main window, gets dns conversion for AW host name, but then errors after
selecting a script file to start a bot, "unknown error" , (debug ver of the
exe opens / runs same & says debug assertion failed and ref's to ATL &
cTime)

any other value or char within the ( ) causes linking error , so far.

..Scooter

help with c++ error in linking

Jul 8, 2006, 11:01pm
Hi .. fwiw

(Hambot 3.3 source with AWSdk 4.1 build 61)

Using VS2005 pro, These changes allow Hambot ver3.3 source to compile, link,
and create a working Release-ver, that will connect & run in AW4.1 (w/o
getting the errors related to ATL & CTime)

This method won't create a Debug-ver, due showing an unresolved external.

--------------------------------------------------

StdAfx.h
=========
// added at begining

#define _SECURE_ATL 0 // Disable Secure ATL
#define _CRT_SECURE_NO_DEPRECATE // Disable Warnings
#define _ATL_SECURE_NO_DEPRECATE // Disable Warnings


HamBotDlg.ccp
==============
// changed port

#define PORT_UNIVERSE_SERVER 6670


Bot.ccp
========
// Added to anounce position away from a worlds GZ on entering world.
// Bot isn't moved to user's coords in bot script until after world entry.

// changed under - CBot::CBot( ... )

m_lWestEast = m_lNorthSouth = 1000000;

// Added under - AWV2_GetWorldInfo()

aw_int_set(AW_MY_X, m_lWestEast);
aw_int_set(AW_MY_Y, m_lAltitude);
aw_int_set(AW_MY_Z, m_lNorthSouth);
aw_state_change();
return TRUE;


HamBotDlg.ccp
==============
// commented out following lines or sections
// that caused errors

// lines under - CHamBotDlg::ProcessScript()

case WORLD_RGB_RED: ...
case WORLD_RGB_GREEN: ...
case WORLD_RGB_BLUE: ...

// sections under - CHamBotDlg::Evaluate( ... )

case 'c': // red backdrop
case 'f': // blue backdrop
case 'g': // green backdrop

// sections under - CHamBotDlg::ExpandMacros( ... )

case 'c': // add red backdrop
case 'f': // add blue backdrop
case 'g': // add green backdrop

Also
======
// change includes to aw.h per your project
// #include "..\cof\aw.h"

#include "aw.h"




[View Quote]

[4.1 Build 949] Goobzilla

Jun 5, 2006, 6:38am
<scooter chuckles> mine got up to 16 million handles just a little bit
ago, (the reg 949 ver), took almost 5 mins to shut AW down.

i did mannage to save the procexplorer texts for aw listing all the threads,
(one befor the leak, and one after it started leaking). also a couple of
screen shots of AW with TM performance screen . Whew!!

installing the 949c now, hope that works

-.Scooter



[View Quote]

set proxy in 4.1 ?

Jun 6, 2006, 12:54am
For people that were setting up 3.6's connection set up window, as via Proxy
& entering proxy and port. How do they get that to work now?

I tried setting it up for proxy , leaving the "use password" box unchecked,
but it seems to auto-check the "use Password" check box when you press
Continue button. (and doesnt connect with blank Proxy username & password).

..Scooter

set proxy in 4.1 ?

Jun 7, 2006, 3:10am
ok .... hummm, we experimented n got aw41 connecting, manually setting
the connection items for connection in the ini . (bypass's the start up
connection config window that way)

..Scooter



[View Quote]

Tunnel Server

Jun 7, 2006, 3:10am
we got that worked out, and you connect to 41 now, rite?

..Scooter


[View Quote]

whatever aw did...

Jun 7, 2006, 5:13pm
try this just to see if it makes the AV respond better (or diff) ...

set the performance tab settings in options -
"keep frame rate at or near" = 30
"don't let vis fall below" = 30 (or what you want min vis to be)
"limit frame rate to a max of about" = 30

then set Visibility to "Float" as setting Viz to a value over-rides those
fps settings (if i understand correctly).

..Scooter



[View Quote]

An intriguing question...

Jun 7, 2006, 11:18pm
Aside from whether i'd agree or not agree ...

You're presenting statements and conclusions as if they were fact, when
infact they are assumption, unsubstantiated speculation, and personal bias.
You offer conclusions as if they are derived from your statements, when in
fact the conclusions are actually based on facts not yet entered into
evidence.

We already have a feature thats better than blank-a-word, its called Mute.
CA already ejects people that digress with individual undesired words, and
"volenteer" GK's/PK's to deal with disruptive behavour. The feature would
use up valuable resources, which are best used for visually enhansing AW.

..Scooter


imho: blank-a-word or similiar meerly reinforces the "see so evil, hear no
evil ...", (the "lets look away, not get envolved, pretend its not
happening; we're afraid to be confrontational, don't confront the Evil
Doers"), mentality. It does nothing positive, except allow you to become an
inhouse censor.




[View Quote]

the screen shot button

Jun 8, 2006, 12:16am
Plus each pic overwrites the previous pic. So for now, move, copy, or
rename a pic before snaping the next one. (as time permits, later they
will likely make the pics sequencially number)

..Scooter


[View Quote]

Random rides

Jul 20, 2006, 4:41am
>"if its built by a citizen only that cit can ride it."

how about, if its built by a Cit, only that cit can drive it, but it will
accept other riders.


[View Quote]

1  |  
Awportals.com is a privately held community resource website dedicated to Active Worlds.
Copyright (c) Mark Randall 2006 - 2024. All Rights Reserved.
Awportals.com   ·   ProLibraries Live   ·   Twitter   ·   LinkedIn