|
Members in Shoutbox
None.
Shoutbox Search
Shoutbox Commands
/w [name] > Whisper
/r > Reply to last whisper /me > Marks as action Shoutbox Information
Moderators may delete any and all shouts at will.
|
Global Shoutbox
Please log in to shout.
[2016-6-17. : 8:57 pm] O)FaRTy1billion[MM] -- any existing gptp plugin that uses dat files won't work without recompiling, I'm just trying to make it as small of a change as possible (changing only a header)[2016-6-17. : 8:57 pm] poiuy_qwert -- if you don't care about backwards compatibility then this whole conversation was pointless ;P[2016-6-17. : 8:56 pm] poiuy_qwert -- but you can change that is what I'm saying. that would make it so existing plugins still work without any code changes and it doesn't matter if dat expander is loaded second[2016-6-17. : 8:56 pm] O)FaRTy1billion[MM] -- a really tiny template class seems like it'll probably be the easiest and cleanest[2016-6-17. : 8:55 pm] O)FaRTy1billion[MM] -- GPTP they are loaded when they are defined, because they are consts[2016-6-17. : 8:54 pm] poiuy_qwert -- another option is not loading those pointers when the plugin is initialized, but when the game starts. that could have other problems if plugins are expecting it to be loaded before then, but I doubt any plugins do[2016-6-17. : 8:53 pm] O)FaRTy1billion[MM] -- poiuy_qwertpoiuy_qwert shouted: I was thinking there may be some crazy way with overloading the dereference operator or something, but I feel like it would just be better to make a new version of GPTP that isn't backwards compatible or just ensure that my plugin is loaded first xD![]() [2016-6-17. : 8:52 pm] O)FaRTy1billion[MM] -- I guess I could do like a template class or something that does that, but that might be ugly ![]() [2016-6-17. : 8:52 pm] poiuy_qwert -- I was thinking there may be some crazy way with overloading the dereference operator or something, but I feel like it would just be better to make a new version of GPTP that isn't backwards compatible ![]() [2016-6-17. : 8:50 pm] O)FaRTy1billion[MM] -- It is already a pointer to an array, so I need a pointer to a pointer to an array .. and apparently you can't without doing like (*test)[id][2016-6-17. : 8:47 pm] poiuy_qwert -- you need something like "int someArray[5] = {1,2,3,4,5}; int* arrayLocation = &someArray", then get access to someArray but only using arrayLocation[2016-6-17. : 8:43 pm] poiuy_qwert -- I dont think that is comparable, pretty sure that is what GPTP is doing right now[2016-6-17. : 8:40 pm] O)FaRTy1billion[MM] -- the ** was unnecessary. http://pastebin.com/ZteG2DqL works perfectly[2016-6-17. : 8:38 pm] O)FaRTy1billion[MM] -- All the code would be the same, all that's different is the declaration[2016-6-17. : 8:32 pm] poiuy_qwert -- FaRTy1billionFaRTy1billion shouted: poiuy_qwert I wanted to avoid that so that all that needs to be changed is the header file definitely[2016-6-17. : 8:29 pm] O)FaRTy1billion[MM] -- jjf28jjf28 shouted: all pointers can be used as arrays, I don't recommend using references to arrays; you can make a class that overloads array access if you wanna be really fancy too much work. I just wanted it so that it used the pointer instead of copying it, but still worked the same[2016-6-17. : 8:28 pm] O)FaRTy1billion[MM] -- poiuy_qwertpoiuy_qwert shouted: easiest way would be to keep them as pointers to pointers, but then users would have to double de-reference I wanted to avoid that so that all that needs to be changed is the header file[2016-6-17. : 8:25 pm] jjf28 -- all pointers can be used as arrays, I don't recommend using references to arrays; you can make a class that overloads array access if you wanna be really fancy[2016-6-17. : 8:25 pm] poiuy_qwert -- easiest way would be to keep them as pointers to pointers, but then users would have to double de-reference[2016-6-17. : 8:24 pm] poiuy_qwert -- I don't think it can be done in a way that doesn't break existing code[2016-6-17. : 8:20 pm] O)FaRTy1billion[MM] -- how do I make a type that automatically dereferences for that?[2016-6-17. : 8:19 pm] O)FaRTy1billion[MM] -- poiuy_qwertpoiuy_qwert shouted: FaRTy1billion Or update GPTP to not copy the addresses but use them directly so it doesn't matter that might have been what I was going to do, but I'm not sure how to do that![]() [2016-6-17. : 7:39 pm] poiuy_qwert -- FaRTy1billionFaRTy1billion shouted: so long as datextender is loaded first, so gptp reads the correct addresses Or update GPTP to not copy the addresses but use them directly so it doesn't matter ![]() [2016-6-17. : 7:32 pm] O)FaRTy1billion[MM] -- I love when being lazy also results in less work in the long run ![]() [2016-6-17. : 7:30 pm] O)FaRTy1billion[MM] -- so long as datextender is loaded first, so gptp reads the correct addresses[2016-6-17. : 7:28 pm] KYSXD -- FaRTy1billionFaRTy1billion shouted: Oh, cool! GPTP already loads from the dat tables, so I don't need to do anything. FaRTy1billion![]() FaRTy1billion shouted: other than fix like SCBW_DATA(u8*, Graphic, unitsDat[0].address); Those are good news[2016-6-17. : 7:25 pm] O)FaRTy1billion[MM] -- other than fix like SCBW_DATA(u8*, Graphic, unitsDat[0].address);[2016-6-17. : 7:24 pm] O)FaRTy1billion[MM] -- Oh, cool! GPTP already loads from the dat tables, so I don't need to do anything. ![]() [2016-6-17. : 7:24 pm] poiuy_qwert -- FaRTy1billionFaRTy1billion shouted: poiuy_qwert I dunno how to test to make sure everything is done with them, other than to say "Here it is!" and have people say like "Hey, this crashes." Yeah, true, will be tough[2016-6-17. : 7:21 pm] O)FaRTy1billion[MM] -- if all goes as planned it will only require an updated header file, and everything else will be like normal[2016-6-17. : 7:15 pm] KYSXD -- FaRTy1billionFaRTy1billion shouted: o, and I also need to make a modified gptp header so I can add support for this (more dereferencing, yay). GPTP!! :-D[2016-6-17. : 7:08 pm] O)FaRTy1billion[MM] -- anyway I gotta do stuff. with family in town and more family coming, I'll try to make time ;o[2016-6-17. : 7:07 pm] O)FaRTy1billion[MM] -- o, and I also need to make a modified gptp header so I can add support for this (more dereferencing, yay).[2016-6-17. : 7:00 pm] O)FaRTy1billion[MM] -- but the hard work is just getting all the array references changed, filling in the holes like that is easier (or may not be easier, but doesn't take as long)[2016-6-17. : 6:59 pm] O)FaRTy1billion[MM] -- poiuy_qwertpoiuy_qwert shouted: as for which one to do next, thats hard to say. I would almost say that the most important things are expanded so it would be nice to "solidify" that work before moving onto the less useful files I dunno how to test to make sure everything is done with them, other than to say "Here it is!" and have people say like "Hey, this crashes."[2016-6-17. : 6:58 pm] O)FaRTy1billion[MM] -- ya, if I need to expand the weapon ID then I'll just make it so expanding units.dat expands all of them all the time |
NudeRaider, OwainMerrick180, ElianeVachon165, JemmaKingsford066