Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » OT: For anyone who knows Visual Basic...
OT: For anyone who knows Visual Basic... [message #-988311] Thu, 26 December 2002 14:31 Go to next message
Anonymous
I'm having a problem with my code, and I don't know where else to ask it.

Basically, what I have is a variable in the middle of a string being printed to an output file.
code:
Print #1, "StringI" + variable + "StringII"

Now, what I want that to result in is this:
code:
StringIvariableStringII

But instead, I get:
code:
StringI variableStringII

It puts a space after the first part of the string, and I don't know why...

Anyone know? :S
OT: For anyone who knows Visual Basic... [message #-988310] Thu, 26 December 2002 14:41 Go to previous messageGo to next message
Anonymous
quote:
Originally posted by Taximes:
I'm having a problem with my code, and I don't know where else to ask it.

Basically, what I have is a variable in the middle of a string being printed to an output file.
code:
Print #1, "StringI" + variable + "StringII"

Now, what I want that to result in is this:
code:
StringIvariableStringII

But instead, I get:
code:
StringI variableStringII

It puts a space after the first part of the string, and I don't know why...

Anyone know? :S

have u tried
variable2 = "StringI" + variable + "StringII"

print #1,variable2

[ December 26, 2002, 21:41: Message edited by: Francois ]
OT: For anyone who knows Visual Basic... [message #-988309] Thu, 26 December 2002 14:43 Go to previous messageGo to next message
Anonymous
I hadn't, but I just did and it did the same thing.
OT: For anyone who knows Visual Basic... [message #-988308] Thu, 26 December 2002 14:44 Go to previous messageGo to next message
Anonymous
what your varible is supposed to print?(the sub to make the variable = x)
OT: For anyone who knows Visual Basic... [message #-988307] Thu, 26 December 2002 14:50 Go to previous messageGo to next message
Anonymous
All of it is happening in a for loop, so the whole thing is actually printed several times.

The variable is a number that increases each time, while the rest of the string stays the same.

But it won't work with that space before the number.
OT: For anyone who knows Visual Basic... [message #-988306] Thu, 26 December 2002 15:13 Go to previous messageGo to next message
Anonymous
wierd
OT: For anyone who knows Visual Basic... [message #-988305] Thu, 26 December 2002 15:40 Go to previous messageGo to next message
Anonymous
I don't know a thing about this stuff, but post the whole script, someone may spot where the space is coming from...
OT: For anyone who knows Visual Basic... [message #-988304] Thu, 26 December 2002 15:55 Go to previous messageGo to next message
Anonymous
I got it [Big Grin]

It just seems that Visual Basic has a bad habit of throwing in a space when you use the str$() command...
OT: For anyone who knows Visual Basic... [message #-988303] Thu, 26 December 2002 19:37 Go to previous messageGo to next message
Anonymous
well who do you think???

i say jbavr

his models are amazing.
OT: For anyone who knows Visual Basic... [message #-988302] Thu, 26 December 2002 19:40 Go to previous messageGo to next message
Anonymous
Um, you mean his model, as in one model... And it was just a Tesla Coil, not like it was that difficult to do.
OT: For anyone who knows Visual Basic... [message #-988301] Thu, 26 December 2002 21:24 Go to previous messageGo to next message
Anonymous
It depends on your criteria.

I can produce photo-realistic models that look exactly like the ones from the Tiberian Dawn cutscenes, but you'd never be able to use them in-game.

You have to judge it on polycount, accuracy, texturing.
OT: For anyone who knows Visual Basic... [message #-988300] Thu, 26 December 2002 21:55 Go to previous messageGo to next message
Anonymous
spartnII, ive seen alot of his work and its awesome, low polycount, lots of detail.
OT: For anyone who knows Visual Basic... [message #-988299] Thu, 26 December 2002 22:54 Go to previous messageGo to next message
Anonymous
I vote for me. No basis for this vote, I just am the king of the universe.
OT: For anyone who knows Visual Basic... [message #-988298] Fri, 27 December 2002 00:36 Go to previous messageGo to next message
Anonymous
Well I am not self centered so..... I think there's three best.
OT: For anyone who knows Visual Basic... [message #-988297] Fri, 27 December 2002 02:04 Go to previous messageGo to next message
Anonymous
I think i seen alot of good modelers, one day i shall be greater than them ALL! [Big Grin]
OT: For anyone who knows Visual Basic... [message #-988296] Fri, 27 December 2002 04:09 Go to previous messageGo to next message
Anonymous
quote:
Originally posted by aircraftkiller2001:
Um, you mean his model, as in one model... And it was just a Tesla Coil, not like it was that difficult to do.

no i mean as in comparing all of the models of a modeler.

and i agree that tesla was ez to make. but i have seen almost all of his models and they are sweet.
OT: For anyone who knows Visual Basic... [message #-988295] Fri, 27 December 2002 17:22 Go to previous messageGo to next message
Anonymous
I really like Grenader8's work, I haven't really seen everyones.
OT: For anyone who knows Visual Basic... [message #-988294] Fri, 27 December 2002 17:37 Go to previous messageGo to next message
Anonymous
quote:
Originally posted by JTBob:
I really like Grenader8's work, I haven't really seen everyones.

[Big Grin]
OT: For anyone who knows Visual Basic... [message #-988293] Fri, 27 December 2002 17:59 Go to previous messageGo to next message
Anonymous
Hands down, I would have to say that it's Ack, but hee's a map maker,

[ December 27, 2002, 13:52: Message edited by: maytridy ]
OT: For anyone who knows Visual Basic... [message #-988292] Fri, 27 December 2002 06:46 Go to previous messageGo to next message
Anonymous
yeah, Gernader8 is good, so is Agent Gibson, who is the only person i've seen who can make infantry models. Of course it's nearly impossible to beat ACK's mapmaking skills, mainly because he won't let you.
OT: For anyone who knows Visual Basic... [message #-988291] Fri, 27 December 2002 07:27 Go to previous messageGo to next message
Anonymous
i havent seen anything of gernade8 yet. can you show me some?
OT: For anyone who knows Visual Basic... [message #-988290] Fri, 27 December 2002 07:30 Go to previous messageGo to next message
Anonymous
hey, playermodels are no problem, if you know what i mean ^^ [Smile]
OT: For anyone who knows Visual Basic... [message #-988289] Fri, 27 December 2002 07:33 Go to previous messageGo to next message
Anonymous
ACK or Gernader- can't decide. Would Dante be a consideration?
OT: For anyone who knows Visual Basic... [message #-988288] Fri, 27 December 2002 08:05 Go to previous messageGo to next message
Anonymous
quote:
Originally posted by imdgr8one:
ACK or Gernader- can't decide. Would Dante be a consideration?

No, because Dante doesn't make models.

Havoc, Gernader has done almost every structure for Renegade Alert... Apart from the Service Depot, Ore Silo, and the Helipad, all of which I did.

Mine: http://www.cncrenegade.info/redalertmod/images/models/buildings/Helipad.jpg

http://www.cncrenegade.info/redalertmod/images/models/buildings/ore_silo_01.jpg

http://www.cncrenegade.info/redalertmod/images/screenshots/nukesilo.jpg <-- Did the missile silo too... I'll do a new version sometime soon.

The rest here are his:

http://www.cncrenegade.info/modules.php?name=Content&pa=showpage&pid=76

http://www.cncrenegade.info/modules.php?name=Content&pa=showpage&pid=77
OT: For anyone who knows Visual Basic... [message #-988287] Fri, 27 December 2002 08:15 Go to previous messageGo to previous message
Anonymous
noooooooooooo,
Dante=Programmer... Dante=3d retard... Dante=Graphics retard...

if it can't be done in notepad... im a retard!!!

LOL
Previous Topic: Golden God mod
Next Topic: Questions @Dantes Scripts.
Goto Forum:
  


Current Time: Sat Dec 21 22:23:10 MST 2024

Total time taken to generate the page: 0.00959 seconds