Omnimaga
Calculator Community => Other Calc-Related Projects and Ideas => Topic started by: Geekboy1011 on June 11, 2009, 11:09:40 am
-
ever play the flash game no go play than join help is always welcome ;D
it is a rts that you basically go and send troops at each other untill both sides are dead
Progress:
start screen is under debate
battle engine ........ workin on it smile.gif
so far we have decided(i think) that the enemies will move based on a loop counter when the troop # hits the desired value move else add one so on other than that thats it for the engine
celtic 3 is attached
map done mabey edited for more places
menues just need to be implemented yay
people already included on the credits
just about everyone on this forum
ignore the this and cmenu) horrible not wanted to play number ......wait i dont care until it is truly released( crimson.8xp is missing use the old one (calc crash and stuff need to get back up)
aa.8xp is the new backround for those who care
crimen(3) is the new menu sub routine by ti newb
-
what is it like,your ti game so far
-
You should post a bit more info about the game if you're actually making it, though, so people know what is done so far or the like and can help if they want to
I liked the online flash game, though, it would be cool to have a turn based TI version of this or simplified version of the RTS one
-
You should post a bit more info about the game if you're actually making it, though, so people know what is done so far or the like and can help if they want to
I liked the online flash game, though, it would be cool to have a turn based TI version of this or simplified version of the RTS one
A simplified version if well done could be very playable. But not that simplified, the original game is simple enough.
Turn based would kill a little bit the idea of the game. But in turn based to become interesting, I recommend to add more depth on strategy.
That is my opinion... I vote yes for more info about the game and its progress. In UnitedTI, I lost the track of this...
-
Yeah I mostly meant something like limit the amount of unit movement per loop to avoid slowing down the game too much, but add a bit more kind of buildings and upgades, or even allow to put buildings wherever you want
And most importantly don,t use strings unless you decide to not have any collision detection (for example, if you don,t mind units overlapping each others or going on top of buildings, which might make them hard to see, though)
-
well here (http://www.unitedti.org/index.php?showtopic=8770&hl=) is the topic on UTI, the first post has all the info so far. Right now they are planning the basic layout of the game and they have only built the menus...I'll post a screen shot later today of the menus in action.
-
yea that post has to be updated ill get to it right now
edit original is fixed ill copy it to the first one :)
-
Cool, I will try it asap
For some reasons UTI won't let guests download attachments and I can't login to my account
-
hmm, I could upload it to here if you wanted, which file exactly did you want though?
-
no need to, he uploaded the file in the first post in this topic
-
oh, sorry I didn't see that
-
no problem :)
-
Okay, lemme tell u the progress of the game so far. We have *i think finished the menu?* and we have all our idea's sorted out. We just need to make.. the Whole Game XD. Geekboy1011 will tell us whats next.. *im not really the type of guy.. who takes lead..*
-
ok the menu's are almost done i was not at home and forgot to send ti newbs sub to my calc(ti-newb are u gonna make a third option for the flames or should i :) )
so son the'll be done
till the game is finished i am taking requests for the splash screen thing so post ur ideas please :)
the next step is to get a semi working battle engine that is not slow and begin the ai structure
this means
order in which the ai does things ect
move ment
building check
ect
so there thats the next step i think ?
any questions just post any ideas just post any... u got the idea :)
TELL ME WHAT U THINK PLEASE!
-
sounds good, what were you thinking for the splash screen though?
-
idk thats why i am asking
my friend suggested a guy looking downa barrel of a scope a guy walks in to the sight !blam! the guy dies then crimson ware fare is shown\
-
um, that would be hard, how about just the words Crimson Warefare in 5 level greyscale? jk, just 2 or 3
-
I would suggest monochrome at first. Grayscale requires considerate amount of ressources and optimizing and even the master of TI-BASIC might not be able to keep a grayscale real time strategy game in hybrid BASIC above 1.5 fps
-
we where talking about the splashscreen, so not the actual game itself
-
oh ok
I just notice some new TI users want to immediately start with advanced stuff. Heck, I did BASIC for 8 years and still find xLIB/Celtic hard to use sometimes
-
lol, I find it hard too at times, of course this is coming up on a year for me though...I have noticed though that all the newbies want to try the really hard/advanced stuff right off the bat
-
Yeah. i just finally realized Geekboy's .. Skill level shall we say? and it's basically what mine was.. about just 1 month ago, so very very close to my skill level.. And my skill level isn't all that great either.. so this project is going to take a loooonnnggggggg while.
(long story short. We're both pretty new at this.. *i think he is.. at least from what ive seen him and i do*)
-
Yeah. i just finally realized Geekboy's .. Skill level shall we say? and it's basically what mine was.. about just 1 month ago, so very very close to my skill level.. And my skill level isn't all that great either.. so this project is going to take a loooonnnggggggg while.
(long story short. We're both pretty new at this.. *i think he is.. at least from what ive seen him and i do*)
Everyone's got to start somewhere! ;D
-
I've noticed the same about you both too, but it's all good, I was there not that long ago myself, just start reading Tibasic developer and you will get along fine :) and you have me and DJ to help you along as well
-
Yeah.. starting somewhere.. but uhh.. Crimsonwarfare? XD!
Well at least we're doing tiny parts at a time. Together. But right now he's at a summer camp.. for i think 2-3 weeks? so he's going to check out my Menu Subprgm and see if he can understand it.
-
ah
sounds good
-
Right now, i am thinking of making some other Subprgm.. that might help Crimsonwarfare.. ORRR i can upgrade my Menu Sub routine.. so it can have like.. multiple Menu's up at the same time, and when you press right, or left, it will switch to the other menu.. *maybe..*
-
well i wish i was in summer camp im acttually in summer school i failed social studies
i sadely lost all of my pics and stuff (the file have somthing wrong with them) so i am going to ask again kindely for any ideas on sprites ect.
and eeems i agree with the taking off more than we can chew but i like the callange so im up to it (i need to get free time first though stupid school :()
-
ah, yeah.
:/ too bad about summer school...
I'd love to help with your sprites, but I don't have the time, I need to get my game done for the contest.
-
This sucks x.x I would have hated to do summer school. Lot of ppl did it over where I live x.x
-
yea summer school stinks
currently ive decided to work on the battle engine i figure once that is close to done ill start everything else again
im just having trouble (im really bad at like large equation writing) writing the equation that will check all of the units on the field that are enimies for locstion and probability of hitting them (like accuracy)
any help / ideas on how to do this would be nice
one thing i think would work is to use a list for the troops kind of built like this
L1(1) # of units on field
L1(2) unit type
L1(3) x pos
L1(4) row
L1(5) # team (start of unit one)
L1(6) continue with L1(2) here (start of unit 2)
L1(3) L1(3) here
and so on and so forth
what do you think
oh and
im not going to be on irc untill school next year :(
-
looks good, I don't really know how to help with the equation but the List setup looks great
-
ok thanks that means im not totally screwed up in the head
oh what would be more effective for the loop (not optiminzation wise speed wise)
while <var> <not equal to > L1(1)
or
for <var>,0,L1(1)
im having trouble figuring out wbhich would be faster?
i love the photos in the sig eeems Gimp?
-
I think a while statment would make for a better loop...
and two of the photos I made with GIMP, but one {AP} made with Photoshop, thanks btw
-
for(n,0,L1(1)-1 ; sets troop that is being checked
3+4N ->a ;sets its xpos to a
for(b,0,L1(1)-1 cycles through all troops
3+4b -> c stores the troops xpos in to c
if L1(5+4n)=1 ;if troop is on team 1
then
if L1(c) <= L1(a)+(L1(a-1)*4) and L1(c) >= L1(a); if xpos less than or equal to and xpos doen not equal less than the troops location
then
if L1(c+2) = 2 ;if on the opposite team
randint(1,3
if ans=2 ; accuracy
3 -> L1(a-1+4B) ; put 3 in unit slot to signify dead/ no troop
end
end
if L1(5+4n) = 2
then
if L1(c) >= L1(a) - (L1(a-1)*4) and L1 (c) <= L1(a)
then
if L1(c+2) =1
randint(1,3
if ans = 2
3 -> L1(a-1+4B)
end
end
end
end
what do you think it is the check code for crimson
well part of it
-
mhmm I don't understand stuff like "3 -> L1(a-1)+4B". Doesn't that give an error?
-
Unfortunately I have trouble understanding people code and what it does, since I am more visual (screenshots) but I did some small optimizing through the code (maybe some other people could spot more advanced optimizations) and saved half a dozen of bytes:
For(n,0,L1(1)-1
3+4N ->a
for(b,0,L1(1)-1
3+4b -> c
if 1=L1(5+4n
then
if L1(c) >= L1(a) and L1(c) <= L1(a)+(4L1(a-1
then
if 2=L1(c+2
randint(1,3
if ans=2
3 -> L1(a-1+4B
end
end
if 2=L1(5+4n
then
if L1 (c) <= L1(a) and L1(c) >= L1(a) - (4L1(a-1
then
if 1=L1(c+2
randint(1,3
if ans = 2
3 -> L1(a-1+4B
end
end
end
end
-
thank you dj im hope fully going to work on the rest of it tonight
still looking for suggestions on sprites and stuffs so if ur in the mood to try to draw them
post them
and if there liked or give an idea for another it will probaly get used
-
L1(1) # of units on field
L1(2) unit type
L1(3) x pos
L1(4) row
L1(5) # team (start of unit one)
L1(6) continue with L1(2) here (start of unit 2)
L1(3) L1(3) here
and so on and so forth
what if you did this?
N : Number of troops
L1: Unit Type
L2: Row
L3: Col
L4: #team
and then each troop would be represented by a single number, and their data would be in the element corresponding to that number.
-
thank you dj im hope fully going to work on the rest of it tonight
still looking for suggestions on sprites and stuffs so if ur in the mood to try to draw them
post them
and if there liked or give an idea for another it will probaly get used
what size an which objects? :o
-
ooops
troops are 8*8 (the tank can be longer so can planes)
buildings are 8*16 (8 high 16 long)
-
I think i made some?
(http://file:///C:/Users/Joey/Pictures/CW%20planes.jpg) plane
(http://file:///C:/Users/Joey/Pictures/CW%20tanks.jpg) tank
(http://file:///C:/Users/Joey/Pictures/CW%20troops%20%282%29.jpg) troops
(http://file:///C:/Users/Joey/Pictures/CW%20troops%20snipah.jpg) sniper troops
EDIT:
how the hell can I upload pictures?
-
Use something like imageshack or some other hosting provider.
-
you can also attach them to the post...
it's under the additional options
-
transferred to next post
-
wow those look great! I can't wait for you to finish the rest
good job NecroF-_-ckk
-
(http://img189.imageshack.us/img189/2291/cwtroopssnipah.jpg) (http://img189.imageshack.us/i/cwtroopssnipah.jpg/) (http://img189.imageshack.us/img189/cwtroopssnipah.jpg/1/w8.png) (http://g.imageshack.us/img189/cwtroopssnipah.jpg/1/) a little sniper dude :D 8*8
(http://img198.imageshack.us/img198/518/cwtroops2.jpg) (http://img198.imageshack.us/i/cwtroops2.jpg/) (http://img198.imageshack.us/img198/cwtroops2.jpg/1/w8.png) (http://g.imageshack.us/img198/cwtroops2.jpg/1/) a little non sniper dude :P 8*8
(http://img197.imageshack.us/img197/9743/cwtanks.jpg) (http://img197.imageshack.us/i/cwtanks.jpg/)(http://img197.imageshack.us/img197/cwtanks.jpg/1/w9.png) (http://g.imageshack.us/img197/cwtanks.jpg/1/) a little tank thingy 8*10 I thought
(http://img198.imageshack.us/img198/6368/cwplanes.jpg) (http://img198.imageshack.us/i/cwplanes.jpg/) (http://img198.imageshack.us/img198/cwplanes.jpg/1/w10.png) (http://g.imageshack.us/img198/cwplanes.jpg/1/) a little plane
(http://img196.imageshack.us/img196/1319/cwbiggerplane.jpg) (http://img196.imageshack.us/i/cwbiggerplane.jpg/) a not that little as the little plane XD
(http://img189.imageshack.us/img189/4120/cwwarind.jpg) (http://img189.imageshack.us/i/cwwarind.jpg/) (http://img189.imageshack.us/img189/cwwarind.jpg/1/w17.png) (http://g.imageshack.us/img189/cwwarind.jpg/1/) war industry 8*16 and iso!!! :P
(http://img15.imageshack.us/img15/2218/cwbussinesscenter.jpg) (http://img15.imageshack.us/i/cwbussinesscenter.jpg/) (http://img15.imageshack.us/img15/cwbussinesscenter.jpg/1/w17.png) (http://g.imageshack.us/img15/cwbussinesscenter.jpg/1/) business center 8*16
(http://img37.imageshack.us/img37/4632/cwairbase.jpg) (http://img37.imageshack.us/i/cwairbase.jpg/) (http://img37.imageshack.us/img37/cwairbase.jpg/1/w17.png) (http://g.imageshack.us/img37/cwairbase.jpg/1/) airbase 8*16
(http://img6.imageshack.us/img6/9273/cwdefencenetwork.jpg) (http://img6.imageshack.us/i/cwdefencenetwork.jpg/) (http://img6.imageshack.us/img6/cwdefencenetwork.jpg/1/w17.png) (http://g.imageshack.us/img6/cwdefencenetwork.jpg/1/) defence network 8*16 (I made it with windows, but if you don't want them, it's just 4 more black pixels :P )
(http://img37.imageshack.us/img37/7241/cwresearchfacility.jpg) (http://img37.imageshack.us/i/cwresearchfacility.jpg/) (http://img37.imageshack.us/img37/cwresearchfacility.jpg/1/w17.png) (http://g.imageshack.us/img37/cwresearchfacility.jpg/1/) research facility 8*16 ^^
(http://img9.imageshack.us/img9/5476/cwweaponterminal.jpg) (http://img9.imageshack.us/i/cwweaponterminal.jpg/) (http://img9.imageshack.us/img9/cwweaponterminal.jpg/1/w17.png) (http://g.imageshack.us/img9/cwweaponterminal.jpg/1/) weapon terminal (dunno if this is good enough, but it's hard to recreate something 8*16 :-X )
(http://img3.imageshack.us/img3/6637/cwhq.jpg) (http://img3.imageshack.us/i/cwhq.jpg/) (http://img3.imageshack.us/img3/cwhq.jpg/1/w17.png) (http://g.imageshack.us/img3/cwhq.jpg/1/) the HQ 8*16 =]
(http://img8.imageshack.us/img8/4272/cwspritesmono.png) (http://img8.imageshack.us/i/cwspritesmono.png/) Alll of them in one bitmap (monochrome 94*64)
-
+1 for ya.
Great work with those! =P
I have no real complaints at all.
-
+1 for ya.
Great work with those! =P
I have no real complaints at all.
thanks ^^ Can't wait to see them in game =D
how is the splash screen going?
-
all i can say is awsome
can u send them to me like as a whole pic or somthing it will make it easyier
and once again awsome
-
all i can say is awsome
can u send them to me like as a whole pic or somthing it will make it easyier
and once again awsome
thank you very much ^^
+you mean like, everything in one pic?
-
yes like a calc pic so i can start using them
as i will do the hex pic thing later
or can u put them all into there hex vals for the identity 5 command
-
Wow, Geekboy1011, i have seen great improvement in ur coding =PPPP. this game will look great when ur done.
-
ok imm looking for a short 3-5 second intro clip for crimson
any takers?
-
srry for the double post but im almost in love with iambian for celtic 3 i just leared it supports x*x sprites in the identity 5 command so that made this so much easyier
thank you iambian
-
Oh CelticIII is beautiful thing.
-
hey for sprite developing, if you are looking for 8x8, or 16x16, can use http://www.ticalc.org/archives/files/fileinfo/389/38904.html to help, it spits sprites out in to hex strings. =]
Also, this is looking pretty good thus far, keep it up!
-
thanks ti freak i might use it ill probally just do it by hand it is good to learn any way beause imthinking about learning asm after i finish crimson :)
-
Not to burst a bubble or anything, but if you're coding sprites in ASM, you'll have the beautiful method of coding your sprites in binary. While it may seem more tedious, you'll be able to stand away from your monitor and eyeball the binary to see what kind of monochrome image you'll come out with. Besides that, you'll be coding these pixels as they appear in the binary so can go ahead and set the insert mode for your favorite code editor and replace away.
The only reason why I didn't do that stunt with Celtic III is because you'd lose any kind of size benefit if it has to parse 8 bytes for a single displayable byte, as opposed to just two hex digits (2 bytes for every 1 byte).
BASIC utilities that convert binary to hex shouldn't be that hard to code, and furthermore, they may already exist somewhere on UTI or ticalc.
-
You have both the one ti-freak mentioned.
<shameless plug>
I also have one which works better on existing sprites. http://www.omnimaga.org/index.php?action=dlattach;topic=613.0;attach=76
move the box around with the arrow keys use +/- to increase of decrease the size of the box then hit 2nd and it will output the hex code into str1.
</shameless plug>
Edit:500 posts.
-
I remember that program... it was started because metagross mentioned it, then I made a version and you like 1-up'd the hell outta me. =P
Good times~
As for geekboy, good luck if you try to go ASM.
I failed horribly... but if anyone needs me, I'll be trying to make an RPG system for my forum from scratch.
^^;
-
I like competition.
-
have all the compotition u want just folloe the forum rules :)
i almost have the demo done i made some stupid math errors
( for(a,0,L1(1)-1)
duh so by the end of this week im thinking but im not sure
not the demo is not a game as it has no ai or any thing it will just show the main game loop working :P
-
ok i am sad to annonce that i have to put this project on holdas i have to put school first and i have been not very good at staying on task
this project is not being canceled i just need to break for a bit so :) ill be back but i wont be on irc as much and i wont be posting as much untill school starts again in the fall i hope to be working again come the beggining of april sorry for all of you who were hoping form me to get somthing done soon
basically im going on vacation for the next week or so till then
HAPPY CODING
ps i really cant wait for summerschool to be over i want to get this close to done soon :p
-
nnnnnnnnnnnnnnnnnnnooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo -and so on, and so on- oooooooooooooooooooooooooooooooooooooooooo
owh yeah well, it's not up to me to grumble :p
-
sorry to hear, and summer school sucks x.x I hope you still stick around, though
-
illl still be here im just like afk for the rest of the summer but i will continue to post when i can as my internet source goes away with summer school but ill be around dont worry i plan to stick with omnimaga as long as i can i love it here it is sadly one of the few joys in my life
KEY WORD ON FEW
that post was to explain my vanishing from the system for the next week ot so lol
-
can someone post a screenie of the background (AA.8xp) as for I don't have acces to UTI
-
ok i got the list thing i was looking for thanks to ztrumpet on unitedti ill post it later attached is for u necrofuckk it is the aa background in grayscale srry for any fails in it do to wabbit emu :)
-
is that the background off the menus? =]
+ will the battlefields have background support?
-
i dought it i think i am using it for the start screen when it displays the game title like in bowling :)
and they might it depends on how cluster phobic the screen gets :)
-
owh =D
if you do want some backgrounds, I want to (try to ) make them for you x]
but that's for later ^^
-
that might look pretty nice with title screen.
-
necrofuckk your welcome to make as many as you want so i wish you luck with that
-
need sizes and stuff first =]
so I can make landshape thingies (or try at least)
-
alright will do wheni can get them my self how about you work on a battle field (the in battle screen gui) if you feel like it of course :)
-
a skin
(http://img132.imageshack.us/img132/5634/skiny.png) (http://img132.imageshack.us/i/skiny.png/) (http://img132.imageshack.us/img132/skiny.png/1/w94.png) (http://g.imageshack.us/img132/skiny.png/1/)
same skin edited a bit, otherwise the sprites wouldn't fit, still crammed though, I won't have to make backgrounds I guess :-X
(http://img132.imageshack.us/img132/8545/crammed.png) (http://img132.imageshack.us/i/crammed.png/) (http://img132.imageshack.us/img132/crammed.png/1/w94.png) (http://g.imageshack.us/img132/crammed.png/1/)
EDIT2: 'screenies' look better when u click'em =] less blurr
EDIT3: 'uncrammed' redesign, got rid off repair things, lowered the GUI thing a bit, lowered the whole battlefield; right now, the planes actually fly above the buildings =]
EDIT4: forgot the link/pic at edit3: (http://img29.imageshack.us/img29/3058/uncrammedxd.png) (http://img29.imageshack.us/i/uncrammedxd.png/)
-
these look nice
is the last image (the offtopic one) from a video game?
-
these look nice
is the last image (the offtopic one) from a video game?
thx =D
+ nope, she'z real ^^
-
alright long awaited update
so far i have my loop coded and ill post the code later calc is in another county....
it needs a major speed update it is at the point where it is ridiculiously slow with 4 ppl on the field so yeah but its getting there :)
i believe builderboy has agreed to help me with the loops and equations needed so i cant wait for his help
also with school starting ill have more free time??? (i prog during school better than hearing my teachers insistent lecturing :P )
other than that i have not coded much more
necrofuckk i believe has a greed to do more graphics for the game :)
so well thats it :)
-
i hope you can make it run faster eventually, some ppl might be able to help. Don't give up on the game, tho, I would like to see this finished :)
-
Yep
But still, I'm not sure what I should make ><
Shall start with it soon tho ^^
-
@necrof-_-ckk take your time im in no rush life has been well hard to post this message im nicking wifi from a neibor O.o
@dj i do plan on finish i just have a lot on my mind ......... ill post my life story later i think if you all want :) i like to share :P
sadley my comp has a horrible internet connection so i need to rehack my schools net to allow calc files to transfer on there comps then ill get the src posted on what i have :) if i get the chance ill make a .rtf file with the source and heavely comment it :P so every one else can help :)
-
I hope things are OK tho x.x, I hope this isn't anything too bad. I hope you won't stop this project, tho
-
ok good news i finnaly got my link to work a gain so here is the soutrce so you can see what i have done over the summer and such requires celtic3 and booth of the attachments run aaaaa
-
Ooh nice gonna try this too asap
-
warning very glitchy as it is a slow not set up engine (i have not coded in placement vars ect yet :)
but it is somthing non the less (by the way needs celtic 3 )
-
Sorry didn't try yet, gonna download now. Was a bit busy x.x
I also need to try another program someone posted but I don't remember what x.x
EDIT: see attachment :(
-
I get the same problem for both teams
-
I did too, but I solved it by copying L1 to L2
-
alriGHt i looked at the code again and found some mistakes i hope to squash the bugs soon ill post soon:)
-
It's ok, take your time ^^
-
wow im now really looking forward to the basic editor now ive made many errors as in not documenting what each section does at least it is not a complete rewrite though :)
-
x.x well I personally never commented my code to be honest, unless it was in Visual Basic x.x
But I always coded on calc anyway
-
oh i meant i did not keep good notes of it i "normally code on paper then transfer it over to my calc and debug on that but after so many revision it get confusing again :) lol
-
oooh I see, ok. I never wrote code on paper except what each vars contains. I wrote lot of notes for planning/story for RPGs, tho
-
no the entire code is in vb format including the indents for loops and stuff comments the whole mess of it i just edit on calc (debug) and the comments become well just off and compleatly wrong to the position of the code it is in :)
edit !update!
ok i got the menu code working now all is fixed ... this means that troops are properlay inserted where they belong ect now to re break up the main loop and fix that :)
-
Wow didn't notice that post edit. Btw you can bump your topic if nobody replies in 12 hours and you got new progress. Else it might get missed easily. I hope you don't give up on this :)
-
lo yeah didnt think of that
ok nother decision ime like thing im debating weather i should switch to a matrix based system
as it will make it instead of n2 n*5 which is marginably less
any ideas on what yall think?
-
mhmm could you explain a bit more in detail? I know matrix collisiion detection is generally easier, though (and faster)
-
ok well to start
currnetly i m using a very slow method (forgot how to explain it o.o) that calculations are around n^2
i was suggested a matrix based system that works with a long thin matrix of which i would check the outer 5 tiles EG
xxx
xox
where o is the charater
this would make it n5 instead of N^2 which is mush less calulatons per second but still retaining a relatively smooth display
i hop e that helps dj :)
-
oooh I see ok ^^, I guess that could probably work. Do you think you'll be able to make screenie at school soon?
-
hmm to give my self a deadline im gonna shoot for lets go with around this time next week if i can
itll be basic same as the one i have now just trying to decide on 1 other thing thaats weather to change to a multi list setup for troop info or stick with the single list format im currently using
-
Hey Guys, I will be remaking a CrimsonMenu, and hopefully i will finish X_X. (ive attempted like 4 times =P).
Current idea: Im taking away the Anoying List. and just keeping the Str1.. The syntax would be similar to the Menu( Function except.. mine is CrimMenu(Xcoordinate,Ycoordinate,"Title",Sprite#,"Option#1",Sprite#,"Option#2,Sprite#.. ect.
Right now, I have InString(.. But i dont know how to get the # of words between them.. Any ideas?
-
cool, I hope this revives ^^
-
me too =D, but i think we're getting our motivations up, all we need is to get some time (lots of hw atm) to do so.
-
Current idea: Im taking away the Anoying List. and just keeping the Str1.. The syntax would be similar to the Menu( Function except.. mine is CrimMenu(Xcoordinate,Ycoordinate,"Title",Sprite#,"Option#1",Sprite#,"Option#2,Sprite#.. ect.
Right now, I have InString(.. But i dont know how to get the # of words between them.. Any ideas?
I'm not sure what you mean, but mabey something like this:
-1->B:0->A
Repeat not(Ans
B+1->B
inString(Str1, "," ,A+1
End
Now B contains the number of commas in Str1.
It's cool. I think this was the first game that I ever helped with on UTI...
-
Lol, this was the first game i helped out with too =D. and uhm.. couldn't u just do.. inString(Str1,",")->B ... to clear up my question.
Say... i have.. the words "Hello,4,option1,1,option2,2->Str1. How would i be able to find out how many letters or characters are between the first and 2nd comma.. the 2nd and 3rd comma.. ect. (if this cannot be done, il have to make my Menu with Strings and Lists again.) T_T
-
by subtracting the first answer from the second
Eg:inString(Str1,",")->B
inString(Str1,",",B)->C
C-B->A
A stores the amount of characters in between the two commas
-
k, i just tried reading the manaul, and i cant figure out what the inString(Str1,",",-->B<--) i cant figure out what the B does.. X_X can u plz explain =D thanks Eeems! now i can continue the menu hehe.. Many thanks again.
-
Oh it searches for the string in the string from the place in b and on. (oops you should chane the b to B+1 actually otherwise you would just be looking at the same place)
-
so.. InString(Str1,",")->B //tells me how many ","'s ther are..
and.InString(Str1,",",B+1) // tells me...???? i really cant tell what that b is really doing..
OH CRAP, i thought it tells me how many"," there were... =P okay, now i know what InString does.. but i still dunno what the 3rd arguement is.. (B+1)
-
It is where it starts looking to find the string you are looking for, kind of like the starting point.
-
ic ic!!! thank you Eeems
-
No problem, always glad to help :)
-
sweet thats good to know for me
@ Ti-Newb what did you want me to explain again i forgot (what we talked about over irc?????)
-
Eeems answered it
-
oh i meant about the engine and stuff you said you were confused but i forgot exacly what you weanted info about
-
Here it is.. -Without Sprites function-...
***Runs on CelticIII*** !!!!!!!!!!!
To use: Type in your Coordinates into List1.. so if u wanted the menu to appear at.. x=5 and y=7.. you'd do.. {5,7... After that, put in the Mode you'd like the Menu to do..
Mode 1: Clr Draw and display a Box around your Options
Mode 2: Clr Draw and Dont display Box around your options (More Dos-ish)
Mode 3: Dont Clr Draw and Display Box
so basically, you'd need.. {Xcoordinate,Ycoordinate,Mode->L1
Then, you need to type down your options that need to be displayed into Str1.. but seperated options with a comma.. Example:
"START,CREDITS,QUIT->Str1
BTW This is a Subprgm, so ur supposed to stick it into ur Main Prgm..
-Your Codes-
-More of your Codes-
{Xcoordinate,Ycoordinate,Mode->L1
"START,CREDITS,QUIT (Yes, you dont have to do ->Str1 AS LONG AS ITS RIGHT b4 PrgmMenu!!!
PrgmMenu
-Your Codes
-More of your Codes
Then just Run the prgm and ur good.
!! IMPORTANT !! The option you have selected will be saved in the Variable A and E. So if u picked the 2nd option, A would = 2
-
You could replace the first line of the menu program with these lines:
:Ans->Str1 //Store Ans to Str1
:inString(Ans,"}->A //Find where the list ends
:expr("{"+sub(Str1,1,Ans->L1 //Put the list in L1
:sub(Str1,A+1,length(Str1)-A)+",->Str1 //Put the string in Str1
You would pass it like:
"20,10,3}Option1,Option2,Option3
In other words: " X , Y , Option } Name_of_option_1 , Name_of_option_2 , Name_of_option_3...
What do you think?
By the way, the Menu program looks great!
-
Nice, will check this soon!
-
(http://geekboy.triforcelegend.net/ti junk/kk.gif)
here is the menu with mode 3
(btw i suck at making screenies )
-
Nice, I didn't check yet but does it let you place a user-defined amount of options and user-defined menu size anywhere on the screen?
-
yes it does
it takes your input in STR1 and figures out how many args it has then displays them in a list XD
and it can be put any where on the screen as Well :)
-
sweet! it reminds me of the menu system I used in TBP it does kind of the same thing, but I think you have to build the actual menu part yourself, it just will "open" the window for you
(slide it open out, then up)
EDIT: here is my routine for that::Ans→L6
:identity(1,L6(5),1
:For(θ,0,L6(3)/2)
:¦ real(12,9,L6(1)-1-θ,L6(2)-1,L6(1)+1+θ,L6(2)+1,1
:End
:For(θ,0,L6(4)/2)
:¦ real(12,9,L6(1)-1-(L6(3)/2),L6(2)-1-θ,L6(1)+1+(L6(3)/2),L6(2)+1+θ,1
:End
:identity(1,L6(6),1
syntax for use::{X LOC,Y LOC,Width,Height,Recall PIC,Drawn PIC, :prgmZW
X LOC: the X location of the centre of the window
Y LOC: the Y location of the centre of the window
Width: the width of the window
Height: the height of the window
Recall PIC: The original screen before the window was drawn
Drawn PIC: the screen after the widow was drawn (good for redrawing the menu if you have stacked another on top)
-
awsome thanks Eeems
-
np I found it quite usefull
-
nice, actually it's a bit similar to ROL4 menu routines
-
Very nice! Great job!
-
ROL4? is that a Game?
-
There were two attempts at a ROL4 project. One during Fall 2004. I lost motivation, thanks to Arcane Wizard on UTI and the project large size and only a few maps were done and parts of the menu or npc convo. This one had a menu routine too but only for borders, because in options you could change how the menu windows looks like, kinda like Chrono Trigger options.
(http://www.omnimaga.org/images/screenshots/rl4animmini.gif) (http://www.omnimaga.org/images/screenshots/rl4title.gif)
And there was another ROL4 project in June 2007 but I lost motivation after finishing the menu :(
(I think these runs at 30 fps, so Firefox and Opera recommended)
(http://xlib.mtv-music-generator.com/rl4c.gif) (http://xlib.mtv-music-generator.com/rl4b.gif) (http://xlib.mtv-music-generator.com/rl4a.gif)
Back on topic I can't wait to see more progress and maybe screenies of Crimson
-
Yes, i cant wait till we get screenies of crimson too T_T. Btw Geek!!! The Menu is only a Menu, dont worry about my menu, just work on Crimson lmao, and ask me for help if needed. or anyone else
-
Geek, Atm, im planning the sprites to go on the Right of the Words.. This Prgm is not done but for the sake of showing u =D i will post it
-
/necrowhine
:'(
-
Hey JoeyBelgier how have you been?
Sadly this game is no longer in the works, though. :(